forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 3 additions and 0 deletions

View File

@ -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",