Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-07-20 19:09:19 +0300
committerKazu Hirata <kazu@google.com>2022-07-20 19:09:19 +0300
commit360c1111e358c4c7e8591953ce9548d60c9410a6 (patch)
tree23e5e58db766990563252f91761b9d7f33cc72ef /polly
parent993625be80d602327b12c814ae7ea736e51bf693 (diff)
Use llvm::is_contained (NFC)
Diffstat (limited to 'polly')
-rw-r--r--polly/include/polly/ScopInfo.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h
index 404edc89fed8..b89d1be50a83 100644
--- a/polly/include/polly/ScopInfo.h
+++ b/polly/include/polly/ScopInfo.h
@@ -1359,8 +1359,7 @@ public:
if (!Inst)
return false;
if (isBlockStmt())
- return std::find(Instructions.begin(), Instructions.end(), Inst) !=
- Instructions.end();
+ return llvm::is_contained(Instructions, Inst);
return represents(Inst->getParent());
}