Skip to content

Commit 18adf80

Browse files
kazutakahirataaadeshps-mcw
authored andcommitted
[Support] Use StringMap::contains (NFC) (llvm#168673)
Identified with readability-container-contains.
1 parent 5e2afee commit 18adf80

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)