Error out if the expression for a breakpoint

condition doesn't return a result, instead
of blindly trying to use that result.

<rdar://problem/14009519>

llvm-svn: 182875
This commit is contained in:
Sean Callanan 2013-05-29 20:22:18 +00:00
parent ce2168f990
commit 467441d511

View File

@ -312,6 +312,12 @@ BreakpointLocation::ConditionSaysStop (ExecutionContext &exe_ctx, Error &error)
if (result_code == eExecutionCompleted)
{
if (!result_variable_sp)
{
ret = false;
error.SetErrorString("Expression did not return a result");
}
result_value_sp = result_variable_sp->GetValueObject();
if (result_value_sp)