mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-18 07:56:30 +08:00
compiler: Fix attribute writeback with skipped fields
offset wasn't advanced for skipped fields previously, leading to memory corruption/unaligned accesses at runtime.
This commit is contained in:
parent
c172ec6de9
commit
2463e5667d
@ -564,7 +564,7 @@ class LLVMIRGenerator:
|
|||||||
try:
|
try:
|
||||||
llrpcattrs.append(llrpcattr_of_attr(offset, attr, attrtyp))
|
llrpcattrs.append(llrpcattr_of_attr(offset, attr, attrtyp))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
continue
|
pass
|
||||||
|
|
||||||
offset += size
|
offset += size
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user