mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 11:18:27 +08:00
llvm_ir_generator: make sure RPC allocations are not underaligned.
This commit is contained in:
parent
7618907cad
commit
2a9e370840
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user