Fix IrFunction.isEmptyArray implementation
The previous one was incorrect for K1 since parent of top-level function is `IrClass`, not `IrPackageFragment`. The change is non-functional, K1 still worked correctly, but had to do some extra work when inlining `emptyArray` calls and produces less performant bytecode.
This commit is contained in:
committed by
Space Team
parent
224a4e1e3c
commit
f32367d2c2
@@ -1,26 +0,0 @@
|
||||
MODULE main
|
||||
CLASS TestKt.class
|
||||
Annotation: class.invisibleAnnotations
|
||||
K1
|
||||
@Lkotlin/jvm/internal/SourceDebugExtension;( value: #{ SMAP
|
||||
test.kt
|
||||
Kotlin
|
||||
*S Kotlin
|
||||
*F
|
||||
+ 1 test.kt
|
||||
TestKt
|
||||
+ 2 ArrayIntrinsics.kt
|
||||
kotlin/ArrayIntrinsicsKt
|
||||
*L
|
||||
1#1,28:1
|
||||
26#2:29
|
||||
*S KotlinDebug
|
||||
*F
|
||||
+ 1 test.kt
|
||||
TestKt
|
||||
*L
|
||||
9#1:29
|
||||
*E
|
||||
} )
|
||||
K2
|
||||
---
|
||||
@@ -1,7 +1,6 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
// FULL_JDK
|
||||
// JVM_ABI_K1_K2_DIFF: KT-62465
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user