From: Lang Hames Date: Mon, 19 Oct 2020 15:45:38 +0000 (-0700) Subject: [ORC] Fix unused variable warning. X-Git-Tag: llvmorg-13-init~8867 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c89447b65984c97145f63be21e42cfa98da60dd2;p=platform%2Fupstream%2Fllvm.git [ORC] Fix unused variable warning. --- diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp index 6f5a271..726cf10 100644 --- a/llvm/lib/ExecutionEngine/Orc/Core.cpp +++ b/llvm/lib/ExecutionEngine/Orc/Core.cpp @@ -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);