2f5706597a
The variable generated by IrStatementBuilder.irTemporary doesn't inherit startOffset and endOffset from the builder. In particular, as a result, temporary variables generated for elvis operator left operand have UNDEFINED_OFFSET. Additionally, ProvisionalFunctionExpressionLowering copies the offsets of a variable to lowered lambda in the variable initializer. With the problem described above, this causes invalid debug information in Kotlin/Native, see KT-49360. Fix irTemporary by using builder's offsets for the variable. ^KT-49360 Fixed
21 lines
1.5 KiB
Plaintext
Vendored
21 lines
1.5 KiB
Plaintext
Vendored
@0:0..3:0 FILE fqName:<root> fileName:/elvis.kt
|
|
@0:0..23 FUN name:intN visibility:public modality:FINAL <> () returnType:kotlin.Int?
|
|
@0:19..23 BLOCK_BODY
|
|
@0:23..23 RETURN type=kotlin.Nothing from='public final fun intN (): kotlin.Int? declared in <root>'
|
|
@0:19..23 CONST Null type=kotlin.Nothing? value=null
|
|
@2:0..24 FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Int
|
|
@2:13..24 BLOCK_BODY
|
|
@2:24..24 RETURN type=kotlin.Nothing from='public final fun test (): kotlin.Int declared in <root>'
|
|
@2:13..24 BLOCK type=kotlin.Int origin=ELVIS
|
|
@2:13..24 VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Int? [val]
|
|
@2:13..19 CALL 'public final fun intN (): kotlin.Int? declared in <root>' type=kotlin.Int? origin=null
|
|
@2:13..24 WHEN type=kotlin.Int origin=null
|
|
@2:13..24 BRANCH
|
|
@2:13..24 CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ
|
|
@2:13..24 GET_VAR 'val tmp0_elvis_lhs: kotlin.Int? [val] declared in <root>.test' type=kotlin.Int? origin=null
|
|
@2:13..24 CONST Null type=kotlin.Nothing? value=null
|
|
@2:23..24 CONST Int type=kotlin.Int value=1
|
|
@2:13..24 BRANCH
|
|
@2:13..24 CONST Boolean type=kotlin.Boolean value=true
|
|
@2:13..24 GET_VAR 'val tmp0_elvis_lhs: kotlin.Int? [val] declared in <root>.test' type=kotlin.Int? origin=null
|