IR: do not change overrides for lazy IR in FakeOverrideRebuilder

`FakeOverrideBuilder.provideFakeOverrides` recursively changes overrides
for all superclasses in the hierarchy, including lazy IR, which is a lot
of extra work.

Also it leads to some tests failing in the IR fake override builder mode
because it changes correct fake overrides of Java classes to incorrect
ones. Those tests are unmuted but it doesn't mean they are fixed -- most
likely we'll generate fake overrides via IR for lazy IR too, at which
point they'll start to fail again.
This commit is contained in:
Alexander Udalov
2023-09-13 14:32:43 +02:00
committed by Space Team
parent 216d2b50f7
commit fda47c45ec
11 changed files with 9 additions and 20 deletions
@@ -1,5 +1,4 @@
// TARGET_BACKEND: JVM
// IGNORE_CODEGEN_WITH_IR_FAKE_OVERRIDE_GENERATION: KT-61805
// FULL_JDK
// ISSUE: KT-45584
@@ -1,6 +1,5 @@
// TARGET_BACKEND: JVM
// FULL_JDK
// IGNORE_CODEGEN_WITH_IR_FAKE_OVERRIDE_GENERATION: KT-61805
// ISSUE: KT-45584
// FILE: PlaceholderExceptionSupport.java