From 66b1388a634c82165e2c34cbc155289cb15a2e5f Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 24 Nov 2015 02:59:15 +0800 Subject: [PATCH] transforms.artiq_ir_generator: never put TVars in dicts. A TVar looks just like whatever it points to, but it does not compare equal, nor is its hash the same. --- artiq/compiler/transforms/artiq_ir_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/transforms/artiq_ir_generator.py b/artiq/compiler/transforms/artiq_ir_generator.py index 376d3a48a..e29949299 100644 --- a/artiq/compiler/transforms/artiq_ir_generator.py +++ b/artiq/compiler/transforms/artiq_ir_generator.py @@ -1625,7 +1625,7 @@ class ARTIQIRGenerator(algorithm.Visitor): method_key = None if isinstance(node.func, asttyped.AttributeT): attr_node = node.func - self.method_map[(attr_node.value.type, attr_node.attr)].append(insn) + self.method_map[(attr_node.value.type.find(), attr_node.attr)].append(insn) if node.iodelay is not None and not iodelay.is_const(node.iodelay, 0): after_delay = self.add_block()