JVM_IR KT-27427 use checkNotNull with message in checked casts
This would prevent extra branching in 'as <not-null-type>', which usually would not be covered.
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
fun foo(): Any? = "abc"
|
||||
|
||||
fun test() = foo() as String
|
||||
|
||||
// 0 ASTORE
|
||||
// 0 ALOAD
|
||||
Reference in New Issue
Block a user