From e941c404c44052c9783043a5b6724b74029b2022 Mon Sep 17 00:00:00 2001 From: Igor Chevdar Date: Mon, 18 Dec 2017 14:21:31 +0300 Subject: [PATCH] Fixed warning + used common function --- .../org/jetbrains/kotlin/backend/konan/llvm/IrToBitcode.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/IrToBitcode.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/IrToBitcode.kt index d687a21cb84..bda5e7fd44d 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/IrToBitcode.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/IrToBitcode.kt @@ -85,6 +85,7 @@ internal fun emitLLVM(context: Context) { DFGSerializer.serialize(context, moduleDFG!!) } + @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") var externalModulesDFG: ExternalModulesDFG? = null phaser.phase(KonanPhase.DESERIALIZE_DFG) { externalModulesDFG = DFGSerializer.deserialize(context, moduleDFG!!.symbolTable.privateTypeIndex, moduleDFG!!.symbolTable.privateFunIndex) @@ -1641,7 +1642,7 @@ internal class CodeGeneratorVisitor(val context: Context, val lifetimes: Map TODO(callee.descriptor.original.toString())