diff options
author | Fangrui Song <maskray@google.com> | 2019-02-10 05:54:57 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-02-10 05:54:57 +0000 |
commit | fdd6b2ea2ac03f09aaf71aa8d3301936cef0fee5 (patch) | |
tree | dad4e92a65941d417eaa2eb4cc0c1d90fea5a3a4 /utils | |
parent | 937984b3a98c5c2a3eef78d0b1d6573287ae97a6 (diff) |
Use llvm::is_contained. NFC
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@353635 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/NeonEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/NeonEmitter.cpp b/utils/TableGen/NeonEmitter.cpp index 6965f88621..ecd7c3fde9 100644 --- a/utils/TableGen/NeonEmitter.cpp +++ b/utils/TableGen/NeonEmitter.cpp @@ -2471,7 +2471,7 @@ void NeonEmitter::run(raw_ostream &OS) { I != Defs.end(); /*No step*/) { bool DependenciesSatisfied = true; for (auto *II : (*I)->getDependencies()) { - if (std::find(Defs.begin(), Defs.end(), II) != Defs.end()) + if (llvm::is_contained(Defs, II)) DependenciesSatisfied = false; } if (!DependenciesSatisfied) { @@ -2580,7 +2580,7 @@ void NeonEmitter::runFP16(raw_ostream &OS) { I != Defs.end(); /*No step*/) { bool DependenciesSatisfied = true; for (auto *II : (*I)->getDependencies()) { - if (std::find(Defs.begin(), Defs.end(), II) != Defs.end()) + if (llvm::is_contained(Defs, II)) DependenciesSatisfied = false; } if (!DependenciesSatisfied) { |