Remove redundant if test.

llvm-svn: 218220
This commit is contained in:
Lang Hames 2014-09-21 17:21:56 +00:00
parent b67bd262ea
commit 27e58727d3
1 changed files with 1 additions and 4 deletions

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,