[llvm] r323059 - [ORC] More cleanup. NFC.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 20 19:20:36 PST 2018
Author: lhames
Date: Sat Jan 20 19:20:36 2018
New Revision: 323059
URL: http://llvm.org/viewvc/llvm-project?rev=323059&view=rev
Log:
[ORC] More cleanup. NFC.
Modified:
llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp
Modified: llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp?rev=323059&r1=323058&r2=323059&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/Orc/Core.cpp Sat Jan 20 19:20:36 2018
@@ -296,11 +296,11 @@ VSO::LookupResult VSO::lookup(Asynchrono
auto SymI = Symbols.find(*Tmp);
// If the symbol isn't in this dylib then just continue.
- // If it is, erase it from Names and proceed.
if (SymI == Symbols.end())
continue;
- else
- Names.erase(Tmp);
+
+ // The symbol is in the dylib. Erase it from Names and proceed.
+ Names.erase(Tmp);
// Forward the query to the given SymbolTableEntry, and if it return a
// layer to perform materialization with, add that to the
More information about the llvm-commits
mailing list