[llvm] r238243 - Use "auto &" in range-based for-loop and remove the extra braces.

Adrian Prantl aprantl at apple.com
Tue May 26 13:06:51 PDT 2015


Author: adrian
Date: Tue May 26 15:06:51 2015
New Revision: 238243

URL: http://llvm.org/viewvc/llvm-project?rev=238243&view=rev
Log:
Use "auto &" in range-based for-loop and remove the extra braces.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=238243&r1=238242&r2=238243&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Tue May 26 15:06:51 2015
@@ -859,9 +859,8 @@ DwarfDebug::buildLocationList(SmallVecto
     auto CurEntry = DebugLoc.rbegin();
     DEBUG({
       dbgs() << CurEntry->getValues().size() << " Values:\n";
-      for (auto Value : CurEntry->getValues()) {
+      for (auto &Value : CurEntry->getValues())
         Value.getExpression()->dump();
-      }
       dbgs() << "-----\n";
     });
 





More information about the llvm-commits mailing list