Merge remote-tracking branch 'origin/master' into master-next

This commit is contained in:
swift-ci
2019-03-22 16:50:20 -07:00
3 changed files with 18 additions and 5 deletions

View File

@@ -2059,6 +2059,7 @@ static void emitDynamicallyReplaceableThunk(IRGenModule &IGM,
forwardedArgs.push_back(&arg);
auto *Res =
B.CreateCall(FunctionPointer(typeFnPtr, signature), forwardedArgs);
Res->setTailCall();
if (implFn->getReturnType()->isVoidTy())
B.CreateRetVoid();
else