Skip to content

Commit c76854e

Browse files
committed
[ORC] Fix unused variable warning.
1 parent 535d19b commit c76854e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/ExecutionEngine/Orc/Core.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,8 +1459,7 @@ JITDylib::removeTracker(ResourceTracker &RT) {
14591459
}
14601460

14611461
for (auto &Sym : SymbolsToRemove) {
1462-
auto I = Symbols.find(Sym);
1463-
assert(I != Symbols.end() && "Symbol not in symbol table");
1462+
assert(Symbols.count(Sym) && "Symbol not in symbol table");
14641463

14651464
// If there is a MaterializingInfo then collect any queries to fail.
14661465
auto MII = MaterializingInfos.find(Sym);

0 commit comments

Comments
 (0)