mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
Optimize more redundant kotlin/jvm/internal/Refs
The number of initializations of the `value` field before the live range begins does not really matter so long as we insert a write of a default value to the local if there were none.
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// TODO KT-36813 Support code generated by JVM_IR in redundant null check optimization
|
||||
fun almostAlwaysTrue() = true
|
||||
|
||||
fun test() {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// TODO KT-36813 Support code generated by JVM_IR in redundant null check optimization
|
||||
fun test() {
|
||||
lateinit var z: String
|
||||
run {
|
||||
|
||||
Reference in New Issue
Block a user