IR: unify 3 copies of function body remapping

Also,

  1. remove some redundant copies;

  2. fix remapping of non-local returns in lambdas if the body is moved
     after LocalDeclarationsLowering (the lambda is no longer inside the
     body, but must still be visited)
This commit is contained in:
pyos
2019-12-30 11:46:03 +01:00
committed by Georgy Bronnikov
parent 4d1677be06
commit 99eab5a058
15 changed files with 120 additions and 131 deletions
@@ -2119,6 +2119,11 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/explicitLocalReturn.kt");
}
@TestMetadata("fromInterfaceDefaultGetter.kt")
public void testFromInterfaceDefaultGetter() throws Exception {
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/fromInterfaceDefaultGetter.kt");
}
@TestMetadata("justReturnInLambda.kt")
public void testJustReturnInLambda() throws Exception {
runTest("compiler/testData/codegen/boxInline/nonLocalReturns/justReturnInLambda.kt");