summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/DataFormatters/FormatManager.cpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/lldb/source/DataFormatters/FormatManager.cpp b/lldb/source/DataFormatters/FormatManager.cpp
index 622dc00dfe4..c4540b5210c 100644
--- a/lldb/source/DataFormatters/FormatManager.cpp
+++ b/lldb/source/DataFormatters/FormatManager.cpp
@@ -374,18 +374,14 @@ FormatManager::ShouldPrintAsOneLiner (ValueObject& valobj)
return false;
}
- // if there is a base-class...
- if (child_sp->IsBaseClass())
+ // if this child has children..
+ if (child_sp->GetNumChildren())
{
- // and it has children..
- if (child_sp->GetNumChildren())
- {
- // ...and no summary...
- // (if it had a summary and the summary wanted children, we would have bailed out anyway
- // so this only makes us bail out if this has no summary and we would then print children)
- if (!child_sp->GetSummaryFormat())
- return false; // then bail out
- }
+ // ...and no summary...
+ // (if it had a summary and the summary wanted children, we would have bailed out anyway
+ // so this only makes us bail out if this has no summary and we would then print children)
+ if (!child_sp->GetSummaryFormat())
+ return false; // then bail out
}
}
return true;
OpenPOWER on IntegriCloud