Make sure the __invoke function for lambdas returns properly. Per bug report on IRC>
llvm-svn: 170160
This commit is contained in:
@@ -1787,6 +1787,8 @@ void CodeGenFunction::EmitForwardingCallToLambda(const CXXRecordDecl *lambda,
|
||||
// If necessary, copy the returned value into the slot.
|
||||
if (!resultType->isVoidType() && returnSlot.isNull())
|
||||
EmitReturnOfRValue(RV, resultType);
|
||||
else
|
||||
EmitBranchThroughCleanup(ReturnBlock);
|
||||
}
|
||||
|
||||
void CodeGenFunction::EmitLambdaBlockInvokeBody() {
|
||||
|
||||
Reference in New Issue
Block a user