[TableGen] Use llvm::is_contained (NFC)

This commit is contained in:
Kazu Hirata 2020-11-06 14:18:00 -08:00
parent 5afb360808
commit eb2cf49ba8
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ namespace llvm {
unsigned getNumValueTypes() const { return VTs.size(); }
bool hasType(const ValueTypeByHwMode &VT) const {
return std::find(VTs.begin(), VTs.end(), VT) != VTs.end();
return llvm::is_contained(VTs, VT);
}
const ValueTypeByHwMode &getValueTypeNum(unsigned VTNum) const {