Fix minor bug in compiler backend message reporting

This commit is contained in:
Svyatoslav Scherbina
2018-03-29 10:28:31 +03:00
committed by SvyatoslavScherbina
parent 8955d247b1
commit 137805e52c
@@ -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.
)
}