================
@@ -251,6 +251,22 @@ llvm::Expected<lldb::ValueObjectSP>
Interpreter::Evaluate(const ASTNode *node) {
return value_or_error;
}
+llvm::Expected<lldb::ValueObjectSP>
+Interpreter::EvaluateAndDereference(const ASTNode *node) {
+ auto valobj_or_err = Evaluate(node);
+ if (!valobj_or_err)
+ return valobj_or_err;
+ lldb::ValueObjectSP valobj = *valobj_or_err;
----------------
Michael137 wrote:
Does `Evaluate` itself guarantee that the `valobj` is not null?
https://github.com/llvm/llvm-project/pull/169363
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits