From c89447b65984c97145f63be21e42cfa98da60dd2 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Mon, 19 Oct 2020 08:45:38 -0700 Subject: [PATCH] [ORC] Fix unused variable warning. --- llvm/lib/ExecutionEngine/Orc/Core.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.7.4