summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-05-26 20:06:51 +0000
committerAdrian Prantl <aprantl@apple.com>2015-05-26 20:06:51 +0000
commit6f8c1b6be6487d1c0330fa5609763196f43a2a9b (patch)
tree0c42c0cfd5360847bcf614197539db77cebfbce7 /llvm/lib
parent757073191a2f4beeade542fe708df2b0be89fee3 (diff)
downloadbcm5719-llvm-6f8c1b6be6487d1c0330fa5609763196f43a2a9b.tar.gz
bcm5719-llvm-6f8c1b6be6487d1c0330fa5609763196f43a2a9b.zip
Use "auto &" in range-based for-loop and remove the extra braces.
llvm-svn: 238243
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index c4ab3e99c89..105ff6c198f 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -859,9 +859,8 @@ DwarfDebug::buildLocationList(SmallVectorImpl<DebugLocEntry> &DebugLoc,
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";
});
OpenPOWER on IntegriCloud