diff options
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/ScriptInterpreter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreter.cpp b/lldb/source/Interpreter/ScriptInterpreter.cpp index fbdcbb8..bc8a542 100644 --- a/lldb/source/Interpreter/ScriptInterpreter.cpp +++ b/lldb/source/Interpreter/ScriptInterpreter.cpp @@ -109,13 +109,13 @@ ScriptInterpreter::StringToLanguage(const llvm::StringRef &language) { Status ScriptInterpreter::SetBreakpointCommandCallback( std::vector<std::reference_wrapper<BreakpointOptions>> &bp_options_vec, const char *callback_text) { - Status return_error; + Status error; for (BreakpointOptions &bp_options : bp_options_vec) { - return_error = SetBreakpointCommandCallback(bp_options, callback_text); - if (return_error.Success()) + error = SetBreakpointCommandCallback(bp_options, callback_text); + if (!error.Success()) break; } - return return_error; + return error; } Status ScriptInterpreter::SetBreakpointCommandCallbackFunction( |