Skip to content

Commit 0e039fc

Browse files
[APINotes] Use DenseMap::contains (NFC)
1 parent ceccacb commit 0e039fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/APINotes/APINotesManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ APINotesManager::loadAPINotes(StringRef Buffer) {
125125

126126
bool APINotesManager::loadAPINotes(const DirectoryEntry *HeaderDir,
127127
FileEntryRef APINotesFile) {
128-
assert(Readers.find(HeaderDir) == Readers.end());
128+
assert(!Readers.contains(HeaderDir));
129129
if (auto Reader = loadAPINotes(APINotesFile)) {
130130
Readers[HeaderDir] = Reader.release();
131131
return false;

0 commit comments

Comments
 (0)