[llvm] r218195 - RTDyldMemoryManager::getSymbolAddress(): Make sure to return 0 if symbol name is not met. [-Wreturn-type]
NAKAMURA Takumi
geek4civic at gmail.com
Sat Sep 20 16:58:14 PDT 2014
Author: chapuni
Date: Sat Sep 20 18:58:13 2014
New Revision: 218195
URL: http://llvm.org/viewvc/llvm-project?rev=218195&view=rev
Log:
RTDyldMemoryManager::getSymbolAddress(): Make sure to return 0 if symbol name is not met. [-Wreturn-type]
Modified:
llvm/trunk/lib/ExecutionEngine/RTDyldMemoryManager.cpp
Modified: llvm/trunk/lib/ExecutionEngine/RTDyldMemoryManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RTDyldMemoryManager.cpp?rev=218195&r1=218194&r2=218195&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RTDyldMemoryManager.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RTDyldMemoryManager.cpp Sat Sep 20 18:58:13 2014
@@ -267,6 +267,8 @@ uint64_t RTDyldMemoryManager::getSymbolA
// 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,
More information about the llvm-commits
mailing list