Change range-based for-loops to be -Wrange-loop-analysis clean.
[oota-llvm.git] / lib / Transforms / Scalar / StructurizeCFG.cpp
index 6c3ce58c5908ddf6f6309da13d42bbc3fcb66d7e..4f23e20d251dfccb1cee83903091e0dada2e0e61 100644 (file)
@@ -887,7 +887,7 @@ void StructurizeCFG::createFlow() {
 /// no longer dominate all their uses. Not sure if this is really nessasary
 void StructurizeCFG::rebuildSSA() {
   SSAUpdater Updater;
-  for (const auto &BB : ParentRegion->blocks())
+  for (auto *BB : ParentRegion->blocks())
     for (BasicBlock::iterator II = BB->begin(), IE = BB->end();
          II != IE; ++II) {