Use empty() instead of begin() == end().
[oota-llvm.git] / lib / Transforms / Utils / SimplifyCFG.cpp
index d04fce6892af188032c6fc1f31cb44058752644b..efd17650f2da3f6c676ccba6a23b181f408cd3be 100644 (file)
@@ -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