Author: zturner Date: Fri Sep 23 13:11:03 2016 New Revision: 282270 URL: http://llvm.org/viewvc/llvm-project?rev=282270&view=rev Log: Try to fix failing TestDataFormatterSkipSummary test case.
Modified: lldb/trunk/source/Interpreter/OptionGroupValueObjectDisplay.cpp Modified: lldb/trunk/source/Interpreter/OptionGroupValueObjectDisplay.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/OptionGroupValueObjectDisplay.cpp?rev=282270&r1=282269&r2=282270&view=diff ============================================================================== --- lldb/trunk/source/Interpreter/OptionGroupValueObjectDisplay.cpp (original) +++ lldb/trunk/source/Interpreter/OptionGroupValueObjectDisplay.cpp Fri Sep 23 13:11:03 2016 @@ -135,7 +135,9 @@ Error OptionGroupValueObjectDisplay::Set 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()); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits