diff --git a/compiler/testData/ir/irText/expressions/tryCatch.kt b/compiler/testData/ir/irText/expressions/tryCatch.kt index 0f77f2de04d..0dbdc4405b4 100644 --- a/compiler/testData/ir/irText/expressions/tryCatch.kt +++ b/compiler/testData/ir/irText/expressions/tryCatch.kt @@ -23,5 +23,6 @@ fun test2(): Int { } finally { println() + 555 } } diff --git a/compiler/testData/ir/irText/expressions/tryCatch.txt b/compiler/testData/ir/irText/expressions/tryCatch.txt index 812e7c661ad..ac39072fd73 100644 --- a/compiler/testData/ir/irText/expressions/tryCatch.txt +++ b/compiler/testData/ir/irText/expressions/tryCatch.txt @@ -20,5 +20,7 @@ FILE /tryCatch.kt BLOCK type=kotlin.Int origin=null CALL 'println(): Unit' type=kotlin.Unit origin=null CONST Int type=kotlin.Int value='24' - finally: BLOCK type=kotlin.Unit origin=null - CALL 'println(): Unit' type=kotlin.Unit origin=null + finally: TYPE_OP origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit + BLOCK type=kotlin.Int origin=null + CALL 'println(): Unit' type=kotlin.Unit origin=null + CONST Int type=kotlin.Int value='555' diff --git a/compiler/testData/ir/irText/expressions/whileDoWhile.txt b/compiler/testData/ir/irText/expressions/whileDoWhile.txt index 4c6539fc336..b9ba1bdb22a 100644 --- a/compiler/testData/ir/irText/expressions/whileDoWhile.txt +++ b/compiler/testData/ir/irText/expressions/whileDoWhile.txt @@ -13,39 +13,42 @@ FILE /whileDoWhile.kt arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=LT $this: GET_VAR 'x: Int' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value='5' - body: BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp0: kotlin.Int - GET_VAR 'x: Int' type=kotlin.Int origin=POSTFIX_INCR - SET_VAR 'x: Int' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'tmp0: Int' type=kotlin.Int origin=null - GET_VAR 'tmp0: Int' type=kotlin.Int origin=null + body: TYPE_OP origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit + BLOCK type=kotlin.Int origin=POSTFIX_INCR + VAR IR_TEMPORARY_VARIABLE val tmp0: kotlin.Int + GET_VAR 'x: Int' type=kotlin.Int origin=POSTFIX_INCR + SET_VAR 'x: Int' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'tmp0: Int' type=kotlin.Int origin=null + GET_VAR 'tmp0: Int' type=kotlin.Int origin=null WHILE label=null origin=WHILE_LOOP condition: CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=LT $this: GET_VAR 'x: Int' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value='10' - body: BLOCK type=kotlin.Int origin=null - BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp1: kotlin.Int - GET_VAR 'x: Int' type=kotlin.Int origin=POSTFIX_INCR - SET_VAR 'x: Int' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'tmp1: Int' type=kotlin.Int origin=null - GET_VAR 'tmp1: Int' type=kotlin.Int origin=null + body: TYPE_OP origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit + BLOCK type=kotlin.Int origin=null + BLOCK type=kotlin.Int origin=POSTFIX_INCR + VAR IR_TEMPORARY_VARIABLE val tmp1: kotlin.Int + GET_VAR 'x: Int' type=kotlin.Int origin=POSTFIX_INCR + SET_VAR 'x: Int' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'tmp1: Int' type=kotlin.Int origin=null + GET_VAR 'tmp1: Int' type=kotlin.Int origin=null DO_WHILE label=null origin=DO_WHILE_LOOP condition: CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=LT $this: GET_VAR 'x: Int' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value='0' DO_WHILE label=null origin=DO_WHILE_LOOP - body: BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp2: kotlin.Int - GET_VAR 'x: Int' type=kotlin.Int origin=POSTFIX_INCR - SET_VAR 'x: Int' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'tmp2: Int' type=kotlin.Int origin=null - GET_VAR 'tmp2: Int' type=kotlin.Int origin=null + body: TYPE_OP origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit + BLOCK type=kotlin.Int origin=POSTFIX_INCR + VAR IR_TEMPORARY_VARIABLE val tmp2: kotlin.Int + GET_VAR 'x: Int' type=kotlin.Int origin=POSTFIX_INCR + SET_VAR 'x: Int' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'tmp2: Int' type=kotlin.Int origin=null + GET_VAR 'tmp2: Int' type=kotlin.Int origin=null condition: CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=LT $this: GET_VAR 'x: Int' type=kotlin.Int origin=null