From 301f405ef34539e7f287513bd7df0cbcf4f71d07 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 29 Jan 2008 13:02:09 +0000 Subject: Use empty() instead of comparing size() with zero. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46514 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp') diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 7ce4711..5d80b75 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -1214,7 +1214,7 @@ void LoopStrengthReduce::StrengthReduceStridedIVUsers(const SCEVHandle &Stride, Loop *L, bool isOnlyStride) { // If all the users are moved to another stride, then there is nothing to do. - if (Uses.Users.size() == 0) + if (Uses.Users.empty()) return; // Keep track if every use in UsersToProcess is an address. If they all are, -- cgit v1.1