From 3e9c290a3ab8378b40dab9f2a7f683dad9fc2176 Mon Sep 17 00:00:00 2001 From: Georgy Bronnikov Date: Mon, 17 Dec 2018 18:37:23 +0300 Subject: [PATCH] Remove references to invisible fakes from IR backend --- .../kotlin/ir/backend/js/lower/BridgesConstruction.kt | 3 --- .../kotlin/backend/jvm/lower/InterfaceDelegationLowering.kt | 1 - 2 files changed, 4 deletions(-) diff --git a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/BridgesConstruction.kt b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/BridgesConstruction.kt index 69a2e570366..d2e4cd901cd 100644 --- a/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/BridgesConstruction.kt +++ b/compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/BridgesConstruction.kt @@ -74,9 +74,6 @@ class BridgesConstruction(val context: JsIrBackendContext) : ClassLoweringPass { ) for ((from, to) in bridgesToGenerate) { - if (to.function.visibility == Visibilities.INVISIBLE_FAKE) - continue - if (!from.function.parentAsClass.isInterface && from.function.isReal && from.function.modality != Modality.ABSTRACT && diff --git a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/InterfaceDelegationLowering.kt b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/InterfaceDelegationLowering.kt index e0c8706944c..10b80c4c9f6 100644 --- a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/InterfaceDelegationLowering.kt +++ b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/InterfaceDelegationLowering.kt @@ -61,7 +61,6 @@ class InterfaceDelegationLowering(val context: JvmBackendContext) : IrElementTra val implementation = function.resolveFakeOverride() ?: continue if (!implementation.hasInterfaceParent() || Visibilities.isPrivate(implementation.visibility) || - implementation.visibility === Visibilities.INVISIBLE_FAKE || implementation.isDefinitelyNotDefaultImplsMethod() || implementation.isMethodOfAny() ) { continue