From a3c77eca0830823500e84e9e1bf8d7681367fed4 Mon Sep 17 00:00:00 2001 From: Ivan Kylchik Date: Tue, 2 Jun 2020 21:09:28 +0300 Subject: [PATCH] Make interpreter maps of enum and object declarations non static Instead of this just create interpreter once per module handling --- .../kotlin/backend/common/interpreter/IrInterpreter.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/interpreter/IrInterpreter.kt b/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/interpreter/IrInterpreter.kt index 4add67c5f30..576fd9f70ab 100644 --- a/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/interpreter/IrInterpreter.kt +++ b/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/interpreter/IrInterpreter.kt @@ -41,10 +41,8 @@ class IrInterpreter(irModule: IrModuleFragment, private val bodyMap: Map() - private val mapOfObjects = mutableMapOf() - } + private val mapOfEnums = mutableMapOf() + private val mapOfObjects = mutableMapOf() private fun Any?.getType(defaultType: IrType): IrType { return when (this) {