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:
parent
32df01be76
commit
f3b5fe715c
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user