projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9e9211
)
Make the stub functions be tail calls
author
Chris Lattner
<sabre@nondot.org>
Fri, 6 May 2005 06:48:54 +0000
(06:48 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 6 May 2005 06:48:54 +0000
(06:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21738
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/JIT/JIT.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/JIT/JIT.cpp
b/lib/ExecutionEngine/JIT/JIT.cpp
index 0559c53e6cfc715bd157865a7b02c00a9d11eb6d..cf4e14481b8c7b8f68efacb72e195a50dc559db1 100644
(file)
--- a/
lib/ExecutionEngine/JIT/JIT.cpp
+++ b/
lib/ExecutionEngine/JIT/JIT.cpp
@@
-198,7
+198,8
@@
GenericValue JIT::runFunction(Function *F,
Args.push_back(C);
}
- Value *TheCall = new CallInst(F, Args, "", StubBB);
+ CallInst *TheCall = new CallInst(F, Args, "", StubBB);
+ TheCall->setTailCall();
if (TheCall->getType() != Type::VoidTy)
new ReturnInst(TheCall, StubBB); // Return result of the call.
else