[Lldb-commits] [lldb] [lldb] Refactor UserExpression::Evaluate to only have one error channel. (PR #117186)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 21 13:10:23 PST 2024


================
@@ -339,12 +339,9 @@ void REPL::IOHandlerInputComplete(IOHandler &io_handler, std::string &code) {
 
       const char *expr_prefix = nullptr;
       lldb::ValueObjectSP result_valobj_sp;
+      lldb::ExpressionResults execution_results = UserExpression::Evaluate(
+          exe_ctx, expr_options, code.c_str(), expr_prefix, result_valobj_sp);
       Status error;
----------------
bulbazord wrote:

Can you remove this variable? If this variable is checked, that can also be removed now since it will always be empty. If it wasn't checked before, well, then I guess you can remove only this line. :)

https://github.com/llvm/llvm-project/pull/117186


More information about the lldb-commits mailing list