Make it obvious that we're iterating over a range of pointers.
[oota-llvm.git] / include / llvm / Analysis / RegionInfoImpl.h
index 1f48d046720c8421e0ed165f0bbc4d97d2168b76..b31eefc15f784ea43999eccc2fd056303272e826 100644 (file)
@@ -487,7 +487,7 @@ void RegionBase<Tr>::print(raw_ostream &OS, bool print_tree, unsigned level,
     OS.indent(level * 2 + 2);
 
     if (Style == PrintBB) {
-      for (const auto &BB : blocks())
+      for (const auto *BB : blocks())
         OS << BB->getName() << ", "; // TODO: remove the last ","
     } else if (Style == PrintRN) {
       for (const_element_iterator I = element_begin(), E = element_end();