<rdar://problem/14266578>

"command source" was not properly setting the stop-on-error option

llvm-svn: 184899
This commit is contained in:
Enrico Granata 2013-06-26 00:36:27 +00:00
parent fb1d9fe15e
commit 15571f1571
1 changed files with 1 additions and 3 deletions

View File

@ -326,9 +326,7 @@ protected:
switch (short_option)
{
case 'e':
m_stop_on_error.SetCurrentValue(Args::StringToBoolean(option_arg, true, &success));
if (!success)
error.SetErrorStringWithFormat("invalid value for stop-on-error: %s", option_arg);
error = m_stop_on_error.SetValueFromCString(option_arg);
break;
case 'c':
m_stop_on_continue = Args::StringToBoolean(option_arg, true, &success);