diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanBackendContext.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanBackendContext.kt index 1d65254e158..056713ae58b 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanBackendContext.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanBackendContext.kt @@ -63,8 +63,8 @@ abstract internal class KonanBackendContext(val config: KonanConfig) : CommonBac val sourceRangeInfo = containingFile.fileEntry.getSourceRangeInfo(this.startOffset, this.endOffset) return CompilerMessageLocation.create( path = sourceRangeInfo.filePath, - line = sourceRangeInfo.startLineNumber, - column = sourceRangeInfo.startColumnNumber, + line = sourceRangeInfo.startLineNumber + 1, + column = sourceRangeInfo.startColumnNumber + 1, lineContent = null // TODO: retrieve the line content. ) }