From 360c1111e358c4c7e8591953ce9548d60c9410a6 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 20 Jul 2022 09:09:19 -0700 Subject: Use llvm::is_contained (NFC) --- polly/include/polly/ScopInfo.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'polly') 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()); } -- cgit v1.1