The change in Devirtualization.kt is needed to workaround JVM IR issue reported at KT-43286. (cherry picked from commit 4a945686bae98c147a641c0b41d3e8474f133ca2)