[llvm] r235044 - One more -Wrange-loop-analysis cleanup.
Richard Trieu
rtrieu at google.com
Wed Apr 15 14:40:50 PDT 2015
Author: rtrieu
Date: Wed Apr 15 16:40:50 2015
New Revision: 235044
URL: http://llvm.org/viewvc/llvm-project?rev=235044&view=rev
Log:
One more -Wrange-loop-analysis cleanup.
Modified:
llvm/trunk/lib/Analysis/RegionPrinter.cpp
Modified: llvm/trunk/lib/Analysis/RegionPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/RegionPrinter.cpp?rev=235044&r1=235043&r2=235044&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/RegionPrinter.cpp (original)
+++ llvm/trunk/lib/Analysis/RegionPrinter.cpp Wed Apr 15 16:40:50 2015
@@ -123,7 +123,7 @@ struct DOTGraphTraits<RegionInfoPass*> :
const RegionInfo &RI = *static_cast<const RegionInfo*>(R.getRegionInfo());
- for (const auto &BB : R.blocks())
+ for (auto *BB : R.blocks())
if (RI.getRegionFor(BB) == &R)
O.indent(2 * (depth + 1)) << "Node"
<< static_cast<const void*>(RI.getTopLevelRegion()->getBBNode(BB))
More information about the llvm-commits
mailing list