projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f919cd
)
[clang] Use llvm::is_contained (NFC)
author
Kazu Hirata
<kazu@google.com>
Sun, 16 Oct 2022 16:19:08 +0000
(09:19 -0700)
committer
Kazu Hirata
<kazu@google.com>
Sun, 16 Oct 2022 16:19:08 +0000
(09:19 -0700)
clang/include/clang/AST/OpenMPClause.h
patch
|
blob
|
history
diff --git
a/clang/include/clang/AST/OpenMPClause.h
b/clang/include/clang/AST/OpenMPClause.h
index
23b4a95
..
1a4ec43
100644
(file)
--- a/
clang/include/clang/AST/OpenMPClause.h
+++ b/
clang/include/clang/AST/OpenMPClause.h
@@
-8965,9
+8965,7
@@
public:
const CapturedStmt *
getCapturedStmt(OpenMPDirectiveKind RegionKind,
ArrayRef<OpenMPDirectiveKind> CaptureRegions) const {
- assert(llvm::any_of(
- CaptureRegions,
- [=](const OpenMPDirectiveKind K) { return K == RegionKind; }) &&
+ assert(llvm::is_contained(CaptureRegions, RegionKind) &&
"RegionKind not found in OpenMP CaptureRegions.");
auto *CS = cast<CapturedStmt>(getAssociatedStmt());
for (auto ThisCaptureRegion : CaptureRegions) {