mirror of https://github.com/m-labs/artiq.git
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:
parent
fec5c2ebf0
commit
66b1388a63
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue