diff --git a/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/lib/ExecutionEngine/MCJIT/MCJIT.cpp index 144329aa8be..a0ac1b2f7f6 100644 --- a/lib/ExecutionEngine/MCJIT/MCJIT.cpp +++ b/lib/ExecutionEngine/MCJIT/MCJIT.cpp @@ -396,16 +396,12 @@ JITSymbol MCJIT::findSymbol(const std::string &Name, uint64_t MCJIT::getGlobalValueAddress(const std::string &Name) { std::lock_guard locked(lock); uint64_t Result = getSymbolAddress(Name, false); - if (Result != 0) - finalizeLoadedModules(); return Result; } uint64_t MCJIT::getFunctionAddress(const std::string &Name) { std::lock_guard locked(lock); uint64_t Result = getSymbolAddress(Name, true); - if (Result != 0) - finalizeLoadedModules(); return Result; }