[Lldb-commits] [lldb] Make result variables obey their dynamic values in subsequent expressions (PR #168611)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 19 13:48:59 PST 2025
================
@@ -289,8 +295,14 @@ bool LLVMUserExpression::FinalizeJITExecution(
result =
GetResultAfterDematerialization(exe_ctx.GetBestExecutionContextScope());
- if (result)
+ if (result) {
+ EvaluateExpressionOptions *options = GetOptions();
+ // TransferAddress also does the offset_to_top calculation, so record the
+ // dynamic option before we do that.
+ if (options)
+ result->PreserveDynamicOption(options->GetUseDynamic());
----------------
JDevlieghere wrote:
```suggestion
// TransferAddress also does the offset_to_top calculation, so record the
// dynamic option before we do that.
if (EvaluateExpressionOptions *options = GetOptions())
result->PreserveDynamicOption(options->GetUseDynamic());
```
https://github.com/llvm/llvm-project/pull/168611
More information about the lldb-commits
mailing list