JVM_IR: Fix line number for varible initializer

This commit is contained in:
Jiaxiang Chen
2019-11-13 17:16:53 -08:00
committed by Ilmir Usmanov
parent 8bb9c572ac
commit 3ea878b1c6
2 changed files with 1 additions and 4 deletions
@@ -443,8 +443,8 @@ class ExpressionCodegen(
declaration.initializer?.let {
it.accept(this, data).coerce(varType, declaration.type).materialize()
mv.store(index, varType)
it.markLineNumber(startOffset = true)
mv.store(index, varType)
}
data.variables.add(VariableInfo(declaration, index, varType, markNewLabel()))
-3
View File
@@ -18,9 +18,6 @@ fun getC() = false
fun getD() = true
// IGNORE_BACKEND: JVM_IR
// IR backend is missing a line number 3 in box() after stepping on line 9 for getting the result of false
// LINENUMBERS
// TestKt.box():3
// TestKt.getA():13