[IR] Not try Null constant in fold constant

^KT-46859 fixed
This commit is contained in:
Ilya Goncharov
2021-05-21 19:29:06 +03:00
committed by teamcityserver
parent b18d4af37b
commit c62a965180
10 changed files with 81 additions and 0 deletions
@@ -939,6 +939,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/boxingOptimization/kt19767_chain.kt");
}
@TestMetadata("kt46859.kt")
public void testKt46859() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kt46859.kt");
}
@TestMetadata("kt5493.kt")
public void testKt5493() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kt5493.kt");
@@ -939,6 +939,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/boxingOptimization/kt19767_chain.kt");
}
@TestMetadata("kt46859.kt")
public void testKt46859() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kt46859.kt");
}
@TestMetadata("kt5493.kt")
public void testKt5493() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kt5493.kt");
@@ -939,6 +939,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/boxingOptimization/kt19767_chain.kt");
}
@TestMetadata("kt46859.kt")
public void testKt46859() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kt46859.kt");
}
@TestMetadata("kt5493.kt")
public void testKt5493() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kt5493.kt");
@@ -824,6 +824,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/boxingOptimization/kt19767_chain.kt");
}
@TestMetadata("kt46859.kt")
public void testKt46859() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kt46859.kt");
}
@TestMetadata("kt5588.kt")
public void testKt5588() throws Exception {
runTest("compiler/testData/codegen/box/boxingOptimization/kt5588.kt");