diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-12-10 01:33:59 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-12-10 01:33:59 +0000 |
| commit | 15e0481d398db7269af8f87d99cb552dd1f439c9 (patch) | |
| tree | 595e9d12f0114bb50ebd81a7ee42d924bd4980dd /llvm/lib/ExecutionEngine/JIT | |
| parent | 56fe52e28706b0bd6fde8937e3fe5be78947a9c5 (diff) | |
| download | bcm5719-llvm-15e0481d398db7269af8f87d99cb552dd1f439c9.tar.gz bcm5719-llvm-15e0481d398db7269af8f87d99cb552dd1f439c9.zip | |
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.
llvm-svn: 60822
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp index dd81f321c12..a74f53d2ab9 100644 --- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -611,7 +611,7 @@ void *JITEmitter::getPointerToGlobal(GlobalValue *V, void *Reference, // 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 |

