PSI2IR: do not generate when subjects multiple times
`in x` is represented as `<subject expression> in x` in psi, so generating the entire call and then replacing the argument with a read of a temporary results in redundant regenerations of the subject. #KT-42054 Fixed #KT-42455 Fixed
This commit is contained in:
+5
@@ -5702,6 +5702,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/kt416.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt42455.kt")
|
||||
public void testKt42455() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/kt42455.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt513.kt")
|
||||
public void testKt513() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/kt513.kt");
|
||||
|
||||
Reference in New Issue
Block a user