SplitBlockPredecessors uses ArrayRef instead of Data and Size.
[oota-llvm.git] / lib / Transforms / Utils / BreakCriticalEdges.cpp
index c05291088157f28f9090cca1bfa3ab091e9e2df9..f752d7981c5fad13865aaa75c3e65e051c344606 100644 (file)
@@ -372,8 +372,7 @@ BasicBlock *llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum,
           // form, which we're in the process of restoring!
           if (!Preds.empty() && HasPredOutsideOfLoop) {
             BasicBlock *NewExitBB =
-              SplitBlockPredecessors(Exit, Preds.data(), Preds.size(),
-                                     "split", P);
+              SplitBlockPredecessors(Exit, Preds, "split", P);
             if (P->mustPreserveAnalysisID(LCSSAID))
               CreatePHIsForSplitLoopExit(Preds, NewExitBB, Exit);
           }