Skip to content

Commit c2445d9

Browse files
[Support] Use StringMap::contains (NFC) (#168673)
Identified with readability-container-contains.
1 parent b78824a commit c2445d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/SpecialCaseList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ unsigned SpecialCaseList::Section::getLastMatch(StringRef Prefix,
455455
}
456456

457457
bool SpecialCaseList::Section::hasPrefix(StringRef Prefix) const {
458-
return Impl->Entries.find(Prefix) != Impl->Entries.end();
458+
return Impl->Entries.contains(Prefix);
459459
}
460460

461461
} // namespace llvm

0 commit comments

Comments
 (0)