[llvm] eb2cf49 - [TableGen] Use llvm::is_contained (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 6 14:18:20 PST 2020
Author: Kazu Hirata
Date: 2020-11-06T14:18:01-08:00
New Revision: eb2cf49ba83086bd7b9ea28fbe562dd3bba5e081
URL: https://github.com/llvm/llvm-project/commit/eb2cf49ba83086bd7b9ea28fbe562dd3bba5e081
DIFF: https://github.com/llvm/llvm-project/commit/eb2cf49ba83086bd7b9ea28fbe562dd3bba5e081.diff
LOG: [TableGen] Use llvm::is_contained (NFC)
Added:
Modified:
llvm/utils/TableGen/CodeGenRegisters.h
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/CodeGenRegisters.h b/llvm/utils/TableGen/CodeGenRegisters.h
index 2b200adef312..48cb9fe1a7e6 100644
--- a/llvm/utils/TableGen/CodeGenRegisters.h
+++ b/llvm/utils/TableGen/CodeGenRegisters.h
@@ -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 {
More information about the llvm-commits
mailing list