diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-14 18:13:49 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-14 18:13:49 +0000 |
commit | a8c763b3071ae1a58ee8baeb282331245527e004 (patch) | |
tree | ae6a11d42901b80c9db1408f7dc3850f114b030c /lib/Transforms/IPO | |
parent | c1f1d46f000eacceaa861e5b083ef0424cb9b41a (diff) | |
download | llvm-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.cpp | 2 |
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>(); |