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,