From 39242e517ec7372e280d3112b2f706ad7ab8f2b3 Mon Sep 17 00:00:00 2001 From: Ivan Kylchik Date: Fri, 19 May 2023 18:13:44 +0200 Subject: [PATCH] [IR] Minor refactoring --- .../org/jetbrains/kotlin/ir/interpreter/CallInterceptor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/CallInterceptor.kt b/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/CallInterceptor.kt index 805012e4d07..30ec56d688a 100644 --- a/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/CallInterceptor.kt +++ b/compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/CallInterceptor.kt @@ -149,9 +149,9 @@ internal class DefaultCallInterceptor(override val interpreter: IrInterpreter) : private data class Arg(var type: String, var value: Any?) private fun calculateBuiltIns(irFunction: IrFunction, args: List) { - val methodName = when (val property = irFunction.property?.symbol) { + val methodName = when (val property = irFunction.property) { null -> irFunction.name.asString() - else -> property.owner.name.asString() + else -> property.name.asString() } val receiverType = irFunction.dispatchReceiverParameter?.type ?: irFunction.extensionReceiverParameter?.type