Coroutines: Fix RedundantLocalsEliminationMethodTransformer
- Take control flow into account when collecting usage information - Don't remove stores to local variables
This commit is contained in:
committed by
Ilmir Usmanov
parent
3113281e2d
commit
5cdf053c8e
+5
@@ -9501,6 +9501,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/unitTypeReturn/coroutineReturn.kt", "kotlin.coroutines");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineUnitFunction.kt")
|
||||
public void testInlineUnitFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/inlineUnitFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interfaceDelegation.kt")
|
||||
public void testInterfaceDelegation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/unitTypeReturn/interfaceDelegation.kt");
|
||||
|
||||
Reference in New Issue
Block a user