forked from M-Labs/artiq
transforms.iodelay_estimator: actually iterate to fixpoint.
This commit is contained in:
parent
10f82ff2c8
commit
44d0a35409
|
@ -108,7 +108,10 @@ class IODelayEstimator(algorithm.Visitor):
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
old_delay = typ.delay.find()
|
||||||
typ.delay.unify(delay)
|
typ.delay.unify(delay)
|
||||||
|
if typ.delay.find() != old_delay:
|
||||||
|
self.changed = True
|
||||||
except types.UnificationError as e:
|
except types.UnificationError as e:
|
||||||
printer = types.TypePrinter()
|
printer = types.TypePrinter()
|
||||||
diag = diagnostic.Diagnostic("fatal",
|
diag = diagnostic.Diagnostic("fatal",
|
||||||
|
|
Loading…
Reference in New Issue