mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 15:39:06 +00:00
Don't overwrite previous value, if it succeeded.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99886 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e38bc14a01
commit
fb70e7deaf
@ -265,7 +265,8 @@ GenericValue Interpreter::callExternalFunction(Function *F,
|
||||
if (RF == RawFunctions->end()) {
|
||||
RawFn = (RawFunc)(intptr_t)
|
||||
sys::DynamicLibrary::SearchForAddressOfSymbol(F->getName());
|
||||
RawFn = (RawFunc)(intptr_t)getPointerToGlobalIfAvailable(F);
|
||||
if (!RawnFn)
|
||||
RawFn = (RawFunc)(intptr_t)getPointerToGlobalIfAvailable(F);
|
||||
if (RawFn != 0)
|
||||
RawFunctions->insert(std::make_pair(F, RawFn)); // Cache for later
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user