From d43e600fdb7abff1c3cca3d46a66bc20f8212a84 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Tue, 15 May 2018 17:49:00 +0300 Subject: [PATCH] [debug info][variables] do not generate debug info for temporal variables --- .../src/org/jetbrains/kotlin/backend/konan/llvm/IrToBitcode.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 9b8f60dcf55..ef1e9074078 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 @@ -1168,7 +1168,7 @@ internal class CodeGeneratorVisitor(val context: Context, val lifetimes: Map debugInfoLocalVariableLocation( + is IrVariable -> if (element.origin != IrDeclarationOrigin.IR_TEMPORARY_VARIABLE) debugInfoLocalVariableLocation( builder = context.debugInfo.builder, functionScope = locationInfo.scope, diType = element.descriptor.type.diType(context, codegen.llvmTargetData), @@ -1176,6 +1176,7 @@ internal class CodeGeneratorVisitor(val context: Context, val lifetimes: Map debugInfoParameterLocation( builder = context.debugInfo.builder, functionScope = locationInfo.scope,