[clang] 2a67cc7 - [Sema] Use llvm::is_contained (NFC)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 6 20:04:59 PST 2022
Author: Kazu Hirata
Date: 2022-11-06T20:04:53-08:00
New Revision: 2a67cc77e2c5227e81f7222258d22a5287af9ffe
URL: https://github.com/llvm/llvm-project/commit/2a67cc77e2c5227e81f7222258d22a5287af9ffe
DIFF: https://github.com/llvm/llvm-project/commit/2a67cc77e2c5227e81f7222258d22a5287af9ffe.diff
LOG: [Sema] Use llvm::is_contained (NFC)
Added:
Modified:
clang/lib/Sema/SemaOpenMP.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp
index 9906f636201c2..4f5d393209292 100644
--- a/clang/lib/Sema/SemaOpenMP.cpp
+++ b/clang/lib/Sema/SemaOpenMP.cpp
@@ -16585,9 +16585,8 @@ getListOfPossibleValues(OpenMPClauseKind K, unsigned First, unsigned Last,
SmallString<256> Buffer;
llvm::raw_svector_ostream Out(Buffer);
unsigned Skipped = Exclude.size();
- auto S = Exclude.begin(), E = Exclude.end();
for (unsigned I = First; I < Last; ++I) {
- if (std::find(S, E, I) != E) {
+ if (llvm::is_contained(Exclude, I)) {
--Skipped;
continue;
}
More information about the cfe-commits
mailing list