From 2463e5667d1b226fff8c59b2afcd2aa9a6aae5c6 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Tue, 14 Aug 2018 13:33:14 +0100 Subject: [PATCH] compiler: Fix attribute writeback with skipped fields offset wasn't advanced for skipped fields previously, leading to memory corruption/unaligned accesses at runtime. --- artiq/compiler/transforms/llvm_ir_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/transforms/llvm_ir_generator.py b/artiq/compiler/transforms/llvm_ir_generator.py index b39c2b5bc..b27d2c868 100644 --- a/artiq/compiler/transforms/llvm_ir_generator.py +++ b/artiq/compiler/transforms/llvm_ir_generator.py @@ -564,7 +564,7 @@ class LLVMIRGenerator: try: llrpcattrs.append(llrpcattr_of_attr(offset, attr, attrtyp)) except ValueError: - continue + pass offset += size