[JVM] Never treat arguments to methods as locals that can be removed.

Fixes KT-44347
This commit is contained in:
Mads Ager
2021-01-14 13:38:19 +01:00
committed by Dmitry Petrov
parent ada51509c4
commit 250cc1dc92
10 changed files with 79 additions and 0 deletions
@@ -3993,6 +3993,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt17588.kt");
}
@TestMetadata("kt44347.kt")
public void testKt44347() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt44347.kt");
}
@TestMetadata("sharedSlotsWithCapturedVars.kt")
public void testSharedSlotsWithCapturedVars() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/sharedSlotsWithCapturedVars.kt");
@@ -3993,6 +3993,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt17588.kt");
}
@TestMetadata("kt44347.kt")
public void testKt44347() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt44347.kt");
}
@TestMetadata("sharedSlotsWithCapturedVars.kt")
public void testSharedSlotsWithCapturedVars() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/sharedSlotsWithCapturedVars.kt");
@@ -3993,6 +3993,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt17588.kt");
}
@TestMetadata("kt44347.kt")
public void testKt44347() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt44347.kt");
}
@TestMetadata("sharedSlotsWithCapturedVars.kt")
public void testSharedSlotsWithCapturedVars() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/sharedSlotsWithCapturedVars.kt");
@@ -2864,6 +2864,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt17200.kt");
}
@TestMetadata("kt44347.kt")
public void testKt44347() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/kt44347.kt");
}
@TestMetadata("sharedSlotsWithCapturedVars.kt")
public void testSharedSlotsWithCapturedVars() throws Exception {
runTest("compiler/testData/codegen/box/closures/capturedVarsOptimization/sharedSlotsWithCapturedVars.kt");