From 677ec12b50f60a321bf6802f6aff17ce87210cef Mon Sep 17 00:00:00 2001 From: Mikhail Zarechenskiy Date: Wed, 4 May 2022 12:51:08 +0200 Subject: [PATCH] Revert "[EE-IR] Minor: run local function patching on all fragment code" This reverts commit 722d8766757e0de75966961c4332d97c67f497c2. Unfortunately, this commit breaks debugger tests in intellij part --- .../backend/jvm/lower/FragmentLocalFunctionPatchLowering.kt | 2 ++ 1 file changed, 2 insertions(+) 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 ab82feef65a..1013702e578 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,6 +55,8 @@ internal class FragmentLocalFunctionPatchLowering( } override fun visitSimpleFunction(declaration: IrSimpleFunction): IrStatement { + if (declaration.name.asString() != GENERATED_FUNCTION_NAME) return declaration + declaration.body!!.transformChildrenVoid(object : IrElementTransformerVoidWithContext() { override fun visitCall(expression: IrCall): IrExpression { expression.transformChildrenVoid(this)