forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

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