summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index 8bc3ab09fe7..4662d0b0949 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -1557,8 +1557,7 @@ Debugger::FormatPrompt
if (log)
log->Printf("[Debugger::FormatPrompt] I am into array || pointer && !range");
- if (target->HasSpecialPrintableRepresentation(val_obj_display,
- custom_format))
+ if (target->HasSpecialPrintableRepresentation(val_obj_display, custom_format))
{
// try to use the special cases
var_success = target->DumpPrintableRepresentation(str_temp,
@@ -1568,9 +1567,7 @@ Debugger::FormatPrompt
log->Printf("[Debugger::FormatPrompt] special cases did%s match", var_success ? "" : "n't");
// should not happen
- if (!var_success)
- s << "<invalid usage of pointer value as object>";
- else
+ if (var_success)
s << str_temp.GetData();
var_success = true;
break;
@@ -1588,10 +1585,6 @@ Debugger::FormatPrompt
custom_format,
ValueObject::ePrintableRepresentationSpecialCasesDisable);
}
- else
- {
- s << "<invalid usage of pointer value as object>";
- }
var_success = true;
break;
}
OpenPOWER on IntegriCloud