Skip to content

Commit

Permalink
[TableGen] Use llvm::is_contained (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Nov 6, 2020
1 parent 5afb360 commit eb2cf49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/utils/TableGen/CodeGenRegisters.h
Expand Up @@ -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 {
Expand Down

0 comments on commit eb2cf49

Please sign in to comment.