diff options
author | Sean Callanan <scallanan@apple.com> | 2013-06-24 17:58:46 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2013-06-24 17:58:46 +0000 |
commit | 879425faddbc21d0bab802c40a9c94aa8dafb07f (patch) | |
tree | 9890ff7bd11226b0c58569dbffc8511b626ec36c | |
parent | eb23add2ad0426edabf8221f60627af086b7b980 (diff) | |
download | bcm5719-llvm-879425faddbc21d0bab802c40a9c94aa8dafb07f.tar.gz bcm5719-llvm-879425faddbc21d0bab802c40a9c94aa8dafb07f.zip |
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
-rw-r--r-- | lldb/source/Breakpoint/BreakpointLocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Breakpoint/BreakpointLocation.cpp b/lldb/source/Breakpoint/BreakpointLocation.cpp index ba8f1de8d12..b32937b6445 100644 --- a/lldb/source/Breakpoint/BreakpointLocation.cpp +++ b/lldb/source/Breakpoint/BreakpointLocation.cpp @@ -319,6 +319,7 @@ BreakpointLocation::ConditionSaysStop (ExecutionContext &exe_ctx, Error &error) { ret = false; error.SetErrorString("Expression did not return a result"); + return false; } result_value_sp = result_variable_sp->GetValueObject(); |