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:
Lang Hames 2014-09-21 17:21:56 +00:00
parent 3e05b40fd0
commit 52eebba413

View File

@ -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,