IR: use origin DEFINED for value parameters of fake overrides

Fake overrides created by K1, as well as fir2ir in K2, use DEFINED. So
this gets rid of a lot of differences in IR text dumps between the K2
normal mode and K2 with IR fake overrides, and will ultimately help in
implementing and testing KT-61360.

The change in AddContinuationLowering is needed to fix tests like
kt47549. When creating anonymous classes for SAM implementations, we're
reusing the same fake override building machinery. And since we can't
extract any meaningful information from the fake override parameter's
origin anymore, we have to get the parameter from the original symbol.
This commit is contained in:
Alexander Udalov
2023-09-14 19:12:19 +02:00
committed by Space Team
parent 23ceb5d08a
commit 019836e9c7
7 changed files with 2 additions and 7 deletions
@@ -1,7 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_STDLIB
// DUMP_IR
// IGNORE_CODEGEN_WITH_IR_FAKE_OVERRIDE_GENERATION: KT-61386
// MODULE: lib
// FILE: JavaAnn.java