forked from OSchip/llvm-project
parent
f4b262a3ec
commit
56bac30683
|
@ -275,7 +275,7 @@ void *JITEmitter::getPointerToGlobal(GlobalValue *V, void *Reference,
|
|||
void *ResultPtr = TheJIT->getPointerToGlobalIfAvailable(F);
|
||||
if (ResultPtr) return ResultPtr;
|
||||
|
||||
if (F->hasExternalLinkage()) {
|
||||
if (F->hasExternalLinkage() && F->isExternal()) {
|
||||
// If this is an external function pointer, we can force the JIT to
|
||||
// 'compile' it, which really just adds it to the map.
|
||||
if (DoesntNeedStub)
|
||||
|
|
Loading…
Reference in New Issue