From 2a9e370840f6a9226353c1533c669171955bedc4 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 16 Oct 2016 16:43:03 +0000 Subject: [PATCH] llvm_ir_generator: make sure RPC allocations are not underaligned. --- artiq/compiler/transforms/llvm_ir_generator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/artiq/compiler/transforms/llvm_ir_generator.py b/artiq/compiler/transforms/llvm_ir_generator.py index 371d6ca29..f935ef2b7 100644 --- a/artiq/compiler/transforms/llvm_ir_generator.py +++ b/artiq/compiler/transforms/llvm_ir_generator.py @@ -1289,6 +1289,7 @@ class LLVMIRGenerator: self.llbuilder.position_at_end(llalloc) llalloca = self.llbuilder.alloca(lli8, llsize, name="rpc.alloc") + llalloca.align = 4 # maximum alignment required by OR1K ABI llphi.add_incoming(llalloca, llalloc) self.llbuilder.branch(llhead)