forked from OSchip/llvm-project
[TableGen] Use llvm::is_contained (NFC)
This commit is contained in:
parent
5afb360808
commit
eb2cf49ba8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue