Don't rely on implicit pointerness of 'auto'.
[oota-llvm.git] / lib / Transforms / Scalar / LoopIdiomRecognize.cpp
index 9bc0153bf513738a4a3a391d2bd74d2ecc67d507..a4806c20efc08e4ba9c70168806b341fa9ad882f 100644 (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;