[llvm-branch-commits] [llvm] [Dexter] Add rewriting for aggregate variables (PR #202800)

Jeremy Morse via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jun 22 06:07:41 PDT 2026


================
@@ -25,22 +25,42 @@ class ExpectedValueWriter:
     def __init__(self, expect: Expect, value: ValueIR):
         self.expect = expect
         self.root_value = value
-        self.expected_value = expect.get_variable_result(value)
+        self.expected_value: Union[Dict, str, None] = None
+        if sub_values := self.root_value.sub_values:
----------------
jmorse wrote:

Comment as to what's going on here appreciated -- we construct sub-expected-value-writer objects because this might be an aggregate?

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


More information about the llvm-branch-commits mailing list