Skip to content

Commit

Permalink
[APINotes] Use DenseMap::contains (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Dec 22, 2023
1 parent ceccacb commit 0e039fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/APINotes/APINotesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ APINotesManager::loadAPINotes(StringRef Buffer) {

bool APINotesManager::loadAPINotes(const DirectoryEntry *HeaderDir,
FileEntryRef APINotesFile) {
assert(Readers.find(HeaderDir) == Readers.end());
assert(!Readers.contains(HeaderDir));
if (auto Reader = loadAPINotes(APINotesFile)) {
Readers[HeaderDir] = Reader.release();
return false;
Expand Down

0 comments on commit 0e039fc

Please sign in to comment.