Use {DenseSet,SetVector,SmallPtrSet}::contains (NFC)

This commit is contained in:
Kazu Hirata
2021-12-24 21:43:06 -08:00
parent 62e48ed10f
commit 76f0f1cc5c
9 changed files with 15 additions and 15 deletions

View File

@@ -4647,7 +4647,7 @@ void ObjectFileMachO::ParseSymtab(Symtab &symtab) {
// Add symbols from the trie to the symbol table.
for (auto &e : external_sym_trie_entries) {
if (symbols_added.find(e.entry.address) != symbols_added.end())
if (symbols_added.contains(e.entry.address))
continue;
// Find the section that this trie address is in, use that to annotate