git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218220
91177308-0d34-0410-b5e6-
96231b3b80d8
// If we Name did not require demangling, or we failed to find the demangled
// name, try again without demangling.
// 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,
}
void *RTDyldMemoryManager::getPointerToNamedFunction(const std::string &Name,