================
@@ -553,9 +553,9 @@ bool ClangUserExpression::PrepareForParsing(
 }
 
 bool ClangUserExpression::TryParse(
-    DiagnosticManager &diagnostic_manager, ExecutionContextScope *exe_scope,
-    ExecutionContext &exe_ctx, lldb_private::ExecutionPolicy execution_policy,
-    bool keep_result_in_memory, bool generate_debug_info) {
+    DiagnosticManager &diagnostic_manager, ExecutionContext &exe_ctx,
+    lldb_private::ExecutionPolicy execution_policy, bool keep_result_in_memory,
+    bool generate_debug_info) {
----------------
Michael137 wrote:

I removed this parameter because it seemed redundant as it was only used for 
the `ClangExpressionParser`, which wants access to all of 
Process/Target/StackFrame. So if we can get that from the ExecutionContext, 
there's no point in passing the `exe_scope` down the the parser. Maybe I'm 
misunderstanding but my impression was that this is a simplification and 
wouldn't cause any functional change. This is purely about making the 
`ClangExpressionParser` get the `StackFrame` calculation right, which it 
doesn't even currently use apart for logging

https://github.com/llvm/llvm-project/pull/87657
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to