[ORC] Fix unused variable warning.
authorLang Hames <lhames@gmail.com>
Mon, 19 Oct 2020 15:45:38 +0000 (08:45 -0700)
committerLang Hames <lhames@gmail.com>
Mon, 19 Oct 2020 16:06:33 +0000 (09:06 -0700)
llvm/lib/ExecutionEngine/Orc/Core.cpp

index 6f5a271..726cf10 100644 (file)
@@ -1459,8 +1459,7 @@ JITDylib::removeTracker(ResourceTracker &RT) {
   }
 
   for (auto &Sym : SymbolsToRemove) {
-    auto I = Symbols.find(Sym);
-    assert(I != Symbols.end() && "Symbol not in symbol table");
+    assert(Symbols.count(Sym) && "Symbol not in symbol table");
 
     // If there is a MaterializingInfo then collect any queries to fail.
     auto MII = MaterializingInfos.find(Sym);