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:
llrpcattrs.append(llrpcattr_of_attr(offset, attr, attrtyp))
except ValueError:
continue
pass
offset += size