From 2f13958c56af7a460ecaeb95ff1219f9165254c0 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 23 Sep 2016 18:11:03 +0000 Subject: [PATCH] Try to fix failing TestDataFormatterSkipSummary test case. llvm-svn: 282270 --- lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp b/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp index 96190e5..f256322 100644 --- a/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp +++ b/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp @@ -135,7 +135,9 @@ Error OptionGroupValueObjectDisplay::SetOptionValue( break; case 'Y': - if (option_arg.getAsInteger(0, no_summary_depth)) { + if (option_arg.empty()) + no_summary_depth = 1; + else if (option_arg.getAsInteger(0, no_summary_depth)) { no_summary_depth = 1; error.SetErrorStringWithFormat("invalid pointer depth '%s'", option_arg.str().c_str()); -- 2.7.4