JVM_IR KT-45446 don't erase captured var if it's dead code

This commit is contained in:
Dmitry Petrov
2021-03-17 10:23:27 +03:00
committed by TeamCityServer
parent 6bd34db725
commit 7fabc19326
9 changed files with 66 additions and 1 deletions
@@ -4041,6 +4041,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt44347.kt");
}
@TestMetadata("kt45446.kt")
public void testKt45446() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt45446.kt");
}
@TestMetadata("sharedSlotsWithCapturedVars.kt")
public void testSharedSlotsWithCapturedVars() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/sharedSlotsWithCapturedVars.kt");
@@ -4041,6 +4041,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt44347.kt");
}
@TestMetadata("kt45446.kt")
public void testKt45446() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt45446.kt");
}
@TestMetadata("sharedSlotsWithCapturedVars.kt")
public void testSharedSlotsWithCapturedVars() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/sharedSlotsWithCapturedVars.kt");
@@ -4041,6 +4041,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt44347.kt");
}
@TestMetadata("kt45446.kt")
public void testKt45446() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt45446.kt");
}
@TestMetadata("sharedSlotsWithCapturedVars.kt")
public void testSharedSlotsWithCapturedVars() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/sharedSlotsWithCapturedVars.kt");