1
0
mirror of https://github.com/KarolS/millfork.git synced 2025-01-01 06:29:53 +00:00

Fix alias resolution during unused code elimination

This commit is contained in:
Karol Stasiak 2019-09-04 01:00:16 +02:00
parent 32df01be76
commit f3b5fe715c

View File

@ -19,9 +19,9 @@ trait NodeOptimization {
var result = set
var lastSize = set.size
do {
lastSize = set.size
lastSize = result.size
result = result.flatMap(name => aliases.get(name).fold(Set(name))(Set(_, name)))
} while(lastSize != set.size)
} while(lastSize != result.size)
result
}