[llvm-commits] [llvm] r60822 - /llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp
Evan Cheng
evan.cheng at apple.com
Tue Dec 9 17:34:00 PST 2008
Author: evancheng
Date: Tue Dec 9 19:33:59 2008
New Revision: 60822
URL: http://llvm.org/viewvc/llvm-project?rev=60822&view=rev
Log:
Fix a bug introduced by r59265. If lazy compilation is disabled, return actual function ptr instead of ptr to stub if function is already compiled.
Modified:
llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp
Modified: llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp?rev=60822&r1=60821&r2=60822&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/JIT/JITEmitter.cpp Tue Dec 9 19:33:59 2008
@@ -611,7 +611,7 @@
// If we have already compiled the function, return a pointer to its body.
Function *F = cast<Function>(V);
void *ResultPtr;
- if (!DoesntNeedStub)
+ if (!DoesntNeedStub && !TheJIT->isLazyCompilationDisabled())
// Return the function stub if it's already created.
ResultPtr = Resolver.getFunctionStubIfAvailable(F);
else
More information about the llvm-commits
mailing list