[Orc] Make the makeStub function propagate argument attributes onto the call to
[oota-llvm.git] / lib / ExecutionEngine / Orc / IndirectionUtils.cpp
index ebeedef7eae857c36d2e2c4431d63481a7c4119d..75b610876b7e707a15c817dfaf3b8c0140b96902 100644 (file)
@@ -49,6 +49,7 @@ void makeStub(Function &F, GlobalVariable &ImplPointer) {
     CallArgs.push_back(&A);
   CallInst *Call = Builder.CreateCall(ImplAddr, CallArgs);
   Call->setTailCall();
+  Call->setAttributes(F.getAttributes());
   Builder.CreateRet(Call);
 }