From a9479ec8d75fcc2c6135900b688b053b366024b9 Mon Sep 17 00:00:00 2001 From: Kristoffer Andersen Date: Wed, 4 May 2022 15:54:40 +0200 Subject: [PATCH] [EE-IR] Anticipate fake overrides in fragment lowerings --- .../backend/jvm/lower/FragmentLocalFunctionPatchLowering.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/FragmentLocalFunctionPatchLowering.kt b/compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/FragmentLocalFunctionPatchLowering.kt index 1013702e578..c05ff50e28b 100644 --- a/compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/FragmentLocalFunctionPatchLowering.kt +++ b/compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/FragmentLocalFunctionPatchLowering.kt @@ -55,9 +55,7 @@ internal class FragmentLocalFunctionPatchLowering( } override fun visitSimpleFunction(declaration: IrSimpleFunction): IrStatement { - if (declaration.name.asString() != GENERATED_FUNCTION_NAME) return declaration - - declaration.body!!.transformChildrenVoid(object : IrElementTransformerVoidWithContext() { + declaration.body?.transformChildrenVoid(object : IrElementTransformerVoidWithContext() { override fun visitCall(expression: IrCall): IrExpression { expression.transformChildrenVoid(this) val localsData = localDeclarationsData[expression.symbol.owner] ?: return super.visitCall(expression)