RTDyldMemoryManager::getSymbolAddress(): Make sure to return 0 if symbol name is not met. [-Wreturn-type]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218195 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2014-09-20 23:58:13 +00:00
parent 843e6bf73b
commit 0d61e377a7

View File

@ -267,6 +267,8 @@ uint64_t RTDyldMemoryManager::getSymbolAddress(const std::string &Name) {
// name, try again without demangling.
if (void *Ptr = sys::DynamicLibrary::SearchForAddressOfSymbol(NameStr))
return (uint64_t)Ptr;
return 0;
}
void *RTDyldMemoryManager::getPointerToNamedFunction(const std::string &Name,