Don't rely on implicit pointerness of 'auto'.

This ends up being a copy. Pointy hat to me.
Reported by: dexonsmith, dblaikie


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237394 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Davide Italiano 2015-05-14 21:52:12 +00:00
parent 4789642b0b
commit 42d0f8304e

View File

@ -639,7 +639,7 @@ bool LoopIdiomRecognize::runOnCountableLoop() {
bool MadeChange = false;
// Scan all the blocks in the loop that are not in subloops.
for (auto BB : CurLoop->getBlocks()) {
for (auto *BB : CurLoop->getBlocks()) {
// Ignore blocks in subloops.
if (LI.getLoopFor(BB) != CurLoop)
continue;