summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-07-04 01:31:24 +0000
committerCraig Topper <craig.topper@gmail.com>2013-07-04 01:31:24 +0000
commitaf0dea13479bbd1eacfb1404ac09c729174c32fe (patch)
tree993847ade847808ef85e08533460c7b149dda80f /llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
parenta24dc7fa8c82651be2d74a8f5e09d8fa06e4f3ca (diff)
downloadbcm5719-llvm-af0dea13479bbd1eacfb1404ac09c729174c32fe.tar.gz
bcm5719-llvm-af0dea13479bbd1eacfb1404ac09c729174c32fe.zip
Use SmallVectorImpl::iterator/const_iterator instead of SmallVector to avoid specifying the vector size.
llvm-svn: 185606
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCCTRLoops.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCCTRLoops.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp b/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
index bfc949521be..30181a027a0 100644
--- a/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
+++ b/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
@@ -402,7 +402,7 @@ bool PPCCTRLoops::convertToCTRLoop(Loop *L) {
BasicBlock *CountedExitBlock = 0;
const SCEV *ExitCount = 0;
BranchInst *CountedExitBranch = 0;
- for (SmallVector<BasicBlock*, 4>::iterator I = ExitingBlocks.begin(),
+ for (SmallVectorImpl<BasicBlock *>::iterator I = ExitingBlocks.begin(),
IE = ExitingBlocks.end(); I != IE; ++I) {
const SCEV *EC = SE->getExitCount(L, *I);
DEBUG(dbgs() << "Exit Count for " << *L << " from block " <<
OpenPOWER on IntegriCloud