2
0
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:
David Nadlinger 2018-08-14 13:33:14 +01:00
parent c172ec6de9
commit 2463e5667d

View File

@ -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