[llvm] c89447b - [ORC] Fix unused variable warning.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 19 09:06:48 PDT 2020
Author: Lang Hames
Date: 2020-10-19T09:06:33-07:00
New Revision: c89447b65984c97145f63be21e42cfa98da60dd2
URL: https://github.com/llvm/llvm-project/commit/c89447b65984c97145f63be21e42cfa98da60dd2
DIFF: https://github.com/llvm/llvm-project/commit/c89447b65984c97145f63be21e42cfa98da60dd2.diff
LOG: [ORC] Fix unused variable warning.
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/Core.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/Core.cpp b/llvm/lib/ExecutionEngine/Orc/Core.cpp
index 6f5a271fbf00..726cf101cb32 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);
More information about the llvm-commits
mailing list