mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
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:
parent
843e6bf73b
commit
0d61e377a7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user