summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-14 18:13:49 +0000
committerDan Gohman <gohman@apple.com>2008-08-14 18:13:49 +0000
commita8c763b3071ae1a58ee8baeb282331245527e004 (patch)
treeae6a11d42901b80c9db1408f7dc3850f114b030c /lib/Transforms/IPO
parentc1f1d46f000eacceaa861e5b083ef0424cb9b41a (diff)
downloadllvm-a8c763b3071ae1a58ee8baeb282331245527e004.tar.gz
llvm-a8c763b3071ae1a58ee8baeb282331245527e004.tar.bz2
llvm-a8c763b3071ae1a58ee8baeb282331245527e004.tar.xz
Use empty() instead of begin() == end().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r--lib/Transforms/IPO/LoopExtractor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/LoopExtractor.cpp b/lib/Transforms/IPO/LoopExtractor.cpp
index 10ec3065af..8e55b3f091 100644
--- a/lib/Transforms/IPO/LoopExtractor.cpp
+++ b/lib/Transforms/IPO/LoopExtractor.cpp
@@ -79,7 +79,7 @@ bool LoopExtractor::runOnFunction(Function &F) {
LoopInfo &LI = getAnalysis<LoopInfo>();
// If this function has no loops, there is nothing to do.
- if (LI.begin() == LI.end())
+ if (LI.empty())
return false;
DominatorTree &DT = getAnalysis<DominatorTree>();