From 3000b1ec417c0c23457da24d6b40c44b397fc2f4 Mon Sep 17 00:00:00 2001 From: Konstantin Anisimov Date: Thu, 18 May 2017 19:22:22 +0700 Subject: [PATCH] One more lateinit --- .../backend/konan/lower/InlineConstructorsTransformation.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") } //-------------------------------------------------------------------------//