Skip to content

Commit c1b4bcb

Browse files
authored
Merge pull request #11478 from zbowling/clang_fix
[IRGen] fix const inferred return type in lambda
2 parents b155270 + 4d2877f commit c1b4bcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenFunc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ static llvm::Function *emitPartialApplicationForwarder(IRGenModule &IGM,
11761176

11771177
// Derive the callee function pointer.
11781178
auto fnTy = origSig.getType()->getPointerTo();
1179-
FunctionPointer fnPtr = [&] {
1179+
FunctionPointer fnPtr = [&]() -> FunctionPointer {
11801180
// If we found a function pointer statically, great.
11811181
if (staticFnPtr) {
11821182
assert(staticFnPtr->getPointer()->getType() == fnTy &&

0 commit comments

Comments
 (0)