Skip to content

Commit

Permalink
transforms.artiq_ir_generator: never put TVars in dicts.
Browse files Browse the repository at this point in the history
A TVar looks just like whatever it points to, but it does not
compare equal, nor is its hash the same.
whitequark committed Nov 23, 2015
1 parent fec5c2e commit 66b1388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artiq/compiler/transforms/artiq_ir_generator.py
Original file line number Diff line number Diff line change
@@ -1625,7 +1625,7 @@ def visit_CallT(self, node):
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()

0 comments on commit 66b1388

Please sign in to comment.