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/Utils/SimplifyCFG.cpp | |
parent | c1f1d46f000eacceaa861e5b083ef0424cb9b41a (diff) |
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/Utils/SimplifyCFG.cpp')
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index d04fce6892..efd17650f2 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -107,7 +107,7 @@ static bool CanPropagatePredecessorsForPHIs(BasicBlock *BB, BasicBlock *Succ) { CommonPreds.insert(*PI); // Shortcut, if there are no common predecessors, merging is always safe - if (CommonPreds.begin() == CommonPreds.end()) + if (CommonPreds.empty()) return true; // Look at all the phi nodes in Succ, to see if they present a conflict when |