mirror of https://github.com/m-labs/artiq.git
transforms.llvm_ir_generator: don't crash when quoting over than one list.
This commit is contained in:
parent
25e2824709
commit
787a1d34fe
|
@ -1058,7 +1058,8 @@ class LLVMIRGenerator:
|
|||
lleltsary = ll.Constant(ll.ArrayType(self.llty_of_type(elt_type), len(llelts)),
|
||||
llelts)
|
||||
|
||||
llglobal = ll.GlobalVariable(self.llmodule, lleltsary.type, "quoted.list")
|
||||
llglobal = ll.GlobalVariable(self.llmodule, lleltsary.type,
|
||||
self.llmodule.scope.deduplicate("quoted.list"))
|
||||
llglobal.initializer = lleltsary
|
||||
llglobal.linkage = "private"
|
||||
|
||||
|
|
Loading…
Reference in New Issue