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

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 21 10:06:04 PST 2024


================
@@ -144,9 +144,13 @@ lldb::ExpressionResults
 UserExpression::Evaluate(ExecutionContext &exe_ctx,
                          const EvaluateExpressionOptions &options,
                          llvm::StringRef expr, llvm::StringRef prefix,
-                         lldb::ValueObjectSP &result_valobj_sp, Status &error,
+                         lldb::ValueObjectSP &result_valobj_sp,
                          std::string *fixed_expression, ValueObject *ctx_obj) {
   Log *log(GetLog(LLDBLog::Expressions | LLDBLog::Step));
+  auto set_error = [&](Status error) {
----------------
JDevlieghere wrote:

In the interest of getting rid of Status, should this take an `llvm::Error`? 

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


More information about the lldb-commits mailing list