mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-06 01:24:35 +00:00
[Orc] Make the makeStub function propagate argument attributes onto the call to
the function body. This is necessary for correctness when lazily compiling. Also, flesh out the Orc unit test infrastructure slightly, and add a unit test for this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235347 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user