diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-23 08:00:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-23 08:00:11 +0000 |
commit | ddd7581c7331fe582dee2fef05585840a6f9023f (patch) | |
tree | 55896d13ef7043f5d991f8c4de2055c49b0c9607 /llvm/lib/ExecutionEngine | |
parent | aa86cff14c8363e41424695ce5fe563aa7d40301 (diff) | |
download | bcm5719-llvm-ddd7581c7331fe582dee2fef05585840a6f9023f.tar.gz bcm5719-llvm-ddd7581c7331fe582dee2fef05585840a6f9023f.zip |
Make JIT::runFunction handle functions with non-C calling conventions.
llvm-svn: 59904
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JIT.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp index 83923a2b8e3..41b3ebcc6db 100644 --- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp +++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp @@ -446,6 +446,7 @@ GenericValue JIT::runFunction(Function *F, CallInst *TheCall = CallInst::Create(F, Args.begin(), Args.end(), "", StubBB); + TheCall->setCallingConv(F->getCallingConv()); TheCall->setTailCall(); if (TheCall->getType() != Type::VoidTy) ReturnInst::Create(TheCall, StubBB); // Return result of the call. |