diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/InlineConstructorsTransformation.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/InlineConstructorsTransformation.kt index e31cc602eea..612a53857de 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/InlineConstructorsTransformation.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/InlineConstructorsTransformation.kt @@ -41,8 +41,8 @@ import org.jetbrains.kotlin.resolve.descriptorUtil.fqNameSafe internal class InlineConstructorsTransformation(val context: Context): IrElementTransformerVoidWithContext() { - private val deserializer = DeserializerDriver(context) - val substituteMap = mutableMapOf() + private val deserializer by lazy { DeserializerDriver(context) } + private val substituteMap by lazy { mutableMapOf() } private val inlineConstructor by lazy { FqName("konan.internal.InlineConstructor") } //-------------------------------------------------------------------------//