From: Sean Callanan Date: Mon, 24 Jun 2013 17:58:46 +0000 (+0000) Subject: We set the error when a breakpoint condition X-Git-Tag: llvmorg-3.4.0-rc1~9912 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=879425faddbc21d0bab802c40a9c94aa8dafb07f;p=platform%2Fupstream%2Fllvm.git 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. llvm-svn: 184765 --- diff --git a/lldb/source/Breakpoint/BreakpointLocation.cpp b/lldb/source/Breakpoint/BreakpointLocation.cpp index ba8f1de8d128..b32937b6445b 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();