forked from M-Labs/artiq
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:
|
||||
llrpcattrs.append(llrpcattr_of_attr(offset, attr, attrtyp))
|
||||
except ValueError:
|
||||
continue
|
||||
pass
|
||||
|
||||
offset += size
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user