Return 0 to signal missing symbols.
This commit is contained in:
parent
db0a700476
commit
d22c54fd61
@ -435,7 +435,8 @@ IncrementalExecutor::getPointerToGlobalFromJIT(const llvm::GlobalValue& GV) {
|
||||
|
||||
// Function not yet codegened by the JIT, force this to happen now.
|
||||
void* Ptr = m_engine->getPointerToGlobal(&GV);
|
||||
diagnoseUnresolvedSymbols(GV.getName(), "symbol");
|
||||
if (diagnoseUnresolvedSymbols(GV.getName(), "symbol"))
|
||||
return 0;
|
||||
return Ptr;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user