From 58db347e010745e4b0e778dab7b1a2a86a15524f Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 19 Nov 2015 23:23:39 +0800 Subject: [PATCH] transforms.iodelay_estimator: fix uninitialized access. --- artiq/compiler/transforms/iodelay_estimator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/compiler/transforms/iodelay_estimator.py b/artiq/compiler/transforms/iodelay_estimator.py index d13f9a36a..b530a1d90 100644 --- a/artiq/compiler/transforms/iodelay_estimator.py +++ b/artiq/compiler/transforms/iodelay_estimator.py @@ -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