2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

transforms.llvm_ir_generator: don't crash when quoting over than one list.

This commit is contained in:
whitequark 2015-12-30 16:22:26 +08:00
parent 25e2824709
commit 787a1d34fe

View File

@ -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"