If the fixed expression doesn't parse, don't tell the user about it.

llvm-svn: 265495
This commit is contained in:
Jim Ingham 2016-04-06 00:25:04 +00:00
parent 2fcb27b08c
commit b29c42f9eb
1 changed files with 5 additions and 0 deletions

View File

@ -293,6 +293,11 @@ UserExpression::Evaluate (ExecutionContext &exe_ctx,
diagnostic_manager.Clear();
user_expression_sp = fixed_expression_sp;
}
else
{
// If the fixed expression failed to parse, don't tell the user about, that won't help.
fixed_expression->clear();
}
}
if (!parse_success)