Try to fix failing TestDataFormatterSkipSummary test case.

llvm-svn: 282270
This commit is contained in:
Zachary Turner 2016-09-23 18:11:03 +00:00
parent 514d8cd83e
commit 2f13958c56
1 changed files with 3 additions and 1 deletions

View File

@ -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());