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
+6
@@ -1017,6 +1017,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/arrays/constantArrayOfAny.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("emptyArrayDesugaring.kt")
|
||||
public void testEmptyArrayDesugaring() {
|
||||
runTest("compiler/testData/codegen/box/arrays/emptyArrayDesugaring.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("forEachBooleanArray.kt")
|
||||
public void testForEachBooleanArray() {
|
||||
|
||||
+6
@@ -1017,6 +1017,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
||||
runTest("compiler/testData/codegen/box/arrays/constantArrayOfAny.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("emptyArrayDesugaring.kt")
|
||||
public void testEmptyArrayDesugaring() {
|
||||
runTest("compiler/testData/codegen/box/arrays/emptyArrayDesugaring.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("forEachBooleanArray.kt")
|
||||
public void testForEachBooleanArray() {
|
||||
|
||||
+6
@@ -1017,6 +1017,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/arrays/constantArrayOfAny.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("emptyArrayDesugaring.kt")
|
||||
public void testEmptyArrayDesugaring() {
|
||||
runTest("compiler/testData/codegen/box/arrays/emptyArrayDesugaring.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("forEachBooleanArray.kt")
|
||||
public void testForEachBooleanArray() {
|
||||
|
||||
Reference in New Issue
Block a user