forked from M-Labs/artiq
1
0
Fork 0

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.
This commit is contained in:
whitequark 2015-11-24 02:59:15 +08:00
parent fec5c2ebf0
commit 66b1388a63
1 changed files with 1 additions and 1 deletions

View File

@ -1625,7 +1625,7 @@ class ARTIQIRGenerator(algorithm.Visitor):
method_key = None method_key = None
if isinstance(node.func, asttyped.AttributeT): if isinstance(node.func, asttyped.AttributeT):
attr_node = node.func 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): if node.iodelay is not None and not iodelay.is_const(node.iodelay, 0):
after_delay = self.add_block() after_delay = self.add_block()