[TableGen] Use llvm::is_contained (NFC)
authorKazu Hirata <kazu@google.com>
Fri, 6 Nov 2020 22:18:00 +0000 (14:18 -0800)
committerKazu Hirata <kazu@google.com>
Fri, 6 Nov 2020 22:18:01 +0000 (14:18 -0800)
llvm/utils/TableGen/CodeGenRegisters.h

index 2b200ad..48cb9fe 100644 (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 {