summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Orc
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-01-21 03:20:36 +0000
committerLang Hames <lhames@gmail.com>2018-01-21 03:20:36 +0000
commit86edf536646b79a8892d994b87b7ce482b9e7248 (patch)
tree2da293750b020fea64f186ef415ae74dd843c6b1 /llvm/lib/ExecutionEngine/Orc
parenta08d4d081c6e6c66b9efc412f4c4f0e0d0f922b4 (diff)
downloadbcm5719-llvm-86edf536646b79a8892d994b87b7ce482b9e7248.tar.gz
bcm5719-llvm-86edf536646b79a8892d994b87b7ce482b9e7248.zip
[ORC] More cleanup. NFC.
llvm-svn: 323059
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/Core.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp
index d53fc448f8a..c99c8ec120f 100644
--- a/llvm/lib/ExecutionEngine/Orc/Core.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp
@@ -296,11 +296,11 @@ VSO::LookupResult VSO::lookup(AsynchronousSymbolQuery &Query,
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
OpenPOWER on IntegriCloud