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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238243 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Adrian Prantl 2015-05-26 20:06:51 +00:00
parent 74f44b6c69
commit 2cc3e0a5ec

View File

@ -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";
});