mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Remove redundant if test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3e05b40fd0
commit
52eebba413
@ -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
Block a user