forked from M-Labs/artiq
1
0
Fork 0

transforms.iodelay_estimator: fix uninitialized access.

This commit is contained in:
whitequark 2015-11-19 23:23:39 +08:00
parent 48a2bb10d5
commit 58db347e01
1 changed files with 2 additions and 0 deletions

View File

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