summaryrefslogtreecommitdiff
path: root/polly/include
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-07-20 09:09:19 -0700
committerKazu Hirata <kazu@google.com>2022-07-20 09:09:19 -0700
commit360c1111e358c4c7e8591953ce9548d60c9410a6 (patch)
tree23e5e58db766990563252f91761b9d7f33cc72ef /polly/include
parent993625be80d602327b12c814ae7ea736e51bf693 (diff)
downloadllvm-360c1111e358c4c7e8591953ce9548d60c9410a6.tar.gz
Use llvm::is_contained (NFC)
Diffstat (limited to 'polly/include')
-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());
}