Skip to content
Snippets Groups Projects
Commit 879425fa authored by Sean Callanan's avatar Sean Callanan
Browse files

We set the error when a breakpoint condition

doesn't return anything; that's great.

We should probably also return rather than
trying to access the nonexistent return value.

<rdar://problem/14009519>

llvm-svn: 184765
parent eb23add2
No related branches found
No related tags found
No related merge requests found
...@@ -319,6 +319,7 @@ BreakpointLocation::ConditionSaysStop (ExecutionContext &exe_ctx, Error &error) ...@@ -319,6 +319,7 @@ BreakpointLocation::ConditionSaysStop (ExecutionContext &exe_ctx, Error &error)
{ {
ret = false; ret = false;
error.SetErrorString("Expression did not return a result"); error.SetErrorString("Expression did not return a result");
return false;
} }
result_value_sp = result_variable_sp->GetValueObject(); result_value_sp = result_variable_sp->GetValueObject();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment