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

transforms.iodelay_estimator: actually iterate to fixpoint.

This commit is contained in:
whitequark 2015-11-17 00:59:40 +03:00
parent 10f82ff2c8
commit 44d0a35409

View File

@ -108,7 +108,10 @@ class IODelayEstimator(algorithm.Visitor):
return
try:
old_delay = typ.delay.find()
typ.delay.unify(delay)
if typ.delay.find() != old_delay:
self.changed = True
except types.UnificationError as e:
printer = types.TypePrinter()
diag = diagnostic.Diagnostic("fatal",