forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 2 additions and 1 deletions

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"