forked from OSchip/llvm-project
parent
b67bd262ea
commit
27e58727d3
|
@ -265,10 +265,7 @@ uint64_t RTDyldMemoryManager::getSymbolAddress(const std::string &Name) {
|
|||
|
||||
// If we Name did not require demangling, or we failed to find the demangled
|
||||
// name, try again without demangling.
|
||||
if (void *Ptr = sys::DynamicLibrary::SearchForAddressOfSymbol(NameStr))
|
||||
return (uint64_t)Ptr;
|
||||
|
||||
return 0;
|
||||
return (uint64_t)sys::DynamicLibrary::SearchForAddressOfSymbol(NameStr);
|
||||
}
|
||||
|
||||
void *RTDyldMemoryManager::getPointerToNamedFunction(const std::string &Name,
|
||||
|
|
Loading…
Reference in New Issue