From 787a1d34fe893b132bf08d60131591ffbd30a985 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 30 Dec 2015 16:22:26 +0800 Subject: [PATCH] transforms.llvm_ir_generator: don't crash when quoting over than one list. --- artiq/compiler/transforms/llvm_ir_generator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/compiler/transforms/llvm_ir_generator.py b/artiq/compiler/transforms/llvm_ir_generator.py index 95de66837..d021e2869 100644 --- a/artiq/compiler/transforms/llvm_ir_generator.py +++ b/artiq/compiler/transforms/llvm_ir_generator.py @@ -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"