diff --git a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/codegen/ExpressionCodegen.kt b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/codegen/ExpressionCodegen.kt index fb4f12822b7..8551b43b136 100644 --- a/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/codegen/ExpressionCodegen.kt +++ b/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/codegen/ExpressionCodegen.kt @@ -463,12 +463,8 @@ class ExpressionCodegen( private fun findLocalIndex(irSymbol: IrSymbol): Int { val index = frameMap.getIndex(irSymbol) - if (index >= 0) { + if (index >= 0) return index - } - if (irFunction.dispatchReceiverParameter != null && (irFunction.parent as? IrClass)?.thisReceiver?.symbol == irSymbol) { - return 0 - } val dump = if (irSymbol.isBound) irSymbol.owner.dump() else irSymbol.descriptor.toString() throw AssertionError("Non-mapped local declaration: $dump\n in ${irFunction.dump()}") }