aboutsummaryrefslogtreecommitdiff
path: root/lib/DebugInfo/DWARFDebugInfoEntry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/DebugInfo/DWARFDebugInfoEntry.cpp')
-rw-r--r--lib/DebugInfo/DWARFDebugInfoEntry.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/DebugInfo/DWARFDebugInfoEntry.cpp b/lib/DebugInfo/DWARFDebugInfoEntry.cpp
index bfe89dd326..6923f6cce4 100644
--- a/lib/DebugInfo/DWARFDebugInfoEntry.cpp
+++ b/lib/DebugInfo/DWARFDebugInfoEntry.cpp
@@ -45,12 +45,10 @@ void DWARFDebugInfoEntryMinimal::dump(raw_ostream &OS,
const DWARFDebugInfoEntryMinimal *child = getFirstChild();
if (recurseDepth > 0 && child) {
- indent += 2;
while (child) {
- child->dump(OS, cu, recurseDepth-1, indent);
+ child->dump(OS, cu, recurseDepth-1, indent+2);
child = child->getSibling();
}
- indent -= 2;
}
} else {
OS << "Abbreviation code not found in 'debug_abbrev' class for code: "