diff options
author | Jakub Staszak <kubastaszak@gmail.com> | 2011-12-09 21:19:53 +0000 |
---|---|---|
committer | Jakub Staszak <kubastaszak@gmail.com> | 2011-12-09 21:19:53 +0000 |
commit | 2fac1d5d61a83c45dcf44119c41dce15ef10e9dc (patch) | |
tree | 5dc3e50b746e0664636867803b4edc119ffe1158 /lib/Transforms/Scalar/LoopUnswitch.cpp | |
parent | cd462d055ffc18a526a9a1d343261d8550e99280 (diff) | |
download | external_llvm-2fac1d5d61a83c45dcf44119c41dce15ef10e9dc.zip external_llvm-2fac1d5d61a83c45dcf44119c41dce15ef10e9dc.tar.gz external_llvm-2fac1d5d61a83c45dcf44119c41dce15ef10e9dc.tar.bz2 |
SplitBlockPredecessors uses ArrayRef instead of Data and Size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopUnswitch.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopUnswitch.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/LoopUnswitch.cpp b/lib/Transforms/Scalar/LoopUnswitch.cpp index e3695a6..301791a 100644 --- a/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -565,8 +565,7 @@ void LoopUnswitch::SplitExitEdges(Loop *L, // Although SplitBlockPredecessors doesn't preserve loop-simplify in // general, if we call it on all predecessors of all exits then it does. if (!ExitBlock->isLandingPad()) { - SplitBlockPredecessors(ExitBlock, Preds.data(), Preds.size(), - ".us-lcssa", this); + SplitBlockPredecessors(ExitBlock, Preds, ".us-lcssa", this); } else { SmallVector<BasicBlock*, 2> NewBBs; SplitLandingPadPredecessors(ExitBlock, Preds, ".us-lcssa", ".us-lcssa", |