mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
The problem is that when performing full analysis we do it in a backward order while result for trivial vals is filled in a forward one. It turns out that reversedInstuctions might return a superset of forward traversed instructions, e.g. in case of dead code in lambda. At the same time result for trivial vals is constant for any instruction, thus we can just return its constant value and use it in the full analysis #KT-20895 Fixed