diff options
author | Kazu Hirata <kazu@google.com> | 2022-07-20 09:09:19 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-07-20 09:09:19 -0700 |
commit | 360c1111e358c4c7e8591953ce9548d60c9410a6 (patch) | |
tree | 23e5e58db766990563252f91761b9d7f33cc72ef /polly | |
parent | 993625be80d602327b12c814ae7ea736e51bf693 (diff) | |
download | llvm-360c1111e358c4c7e8591953ce9548d60c9410a6.zip llvm-360c1111e358c4c7e8591953ce9548d60c9410a6.tar.gz llvm-360c1111e358c4c7e8591953ce9548d60c9410a6.tar.bz2 |
Use llvm::is_contained (NFC)
Diffstat (limited to 'polly')
-rw-r--r-- | polly/include/polly/ScopInfo.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h index 404edc8..b89d1be 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()); } |