diff options
author | Adrian Prantl <aprantl@apple.com> | 2015-05-26 20:06:51 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2015-05-26 20:06:51 +0000 |
commit | 6f8c1b6be6487d1c0330fa5609763196f43a2a9b (patch) | |
tree | 0c42c0cfd5360847bcf614197539db77cebfbce7 /llvm/lib | |
parent | 757073191a2f4beeade542fe708df2b0be89fee3 (diff) | |
download | bcm5719-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.cpp | 3 |
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"; }); |