2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

transforms.iodelay_estimator: fix uninitialized access.

This commit is contained in:
whitequark 2015-11-19 23:23:39 +08:00
parent 48a2bb10d5
commit 58db347e01

View File

@ -266,6 +266,8 @@ class IODelayEstimator(algorithm.Visitor):
{ arg: self.evaluate(args[arg], abort=abort) for arg in free_vars })
else:
assert False
else:
call_delay = iodelay.Const(0)
self.current_delay += call_delay
node.iodelay = call_delay