aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_zlib.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2025-01-17 10:39:49 +0100
committerDmitry Vyukov <dvyukov@google.com>2025-01-20 13:30:27 +0000
commit6e87cfa299c98d36e79e8b8718a4126899a3ba2f (patch)
tree471099bb5efb7421704429e59a2e2134bde2842b /executor/common_zlib.h
parent520f8c5e11ccf2569cdfb02597c3782ce0760b90 (diff)
pkg/compiler: fix struct layout bug
Currently we have a bug in struct layout that affects some corner cases that involve recursive structs. The result of this bug is that we use wrong alignment 1 (not yet calculated) for some structs when calculating layout of other structs. The root cause of this bug is that we calculate struct alignment too early in typeStruct.Gen when structs are not yet laid out. For this reason we moved struct size calculation to the later phase (after compiler.layoutStruct). Move alignment calculation from typeStruct.Gen to compiler.layoutStruct to fix this.
Diffstat (limited to 'executor/common_zlib.h')
0 files changed, 0 insertions, 0 deletions