ae4b8be16b
In details, this commit changes the following: - it converts FIR when without branches to empty IR block without when - it doesn't drop empty else branches in when anymore
22 lines
1.0 KiB
Plaintext
Vendored
22 lines
1.0 KiB
Plaintext
Vendored
FILE fqName:<root> fileName:/emptyWhen.kt
|
|
FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Unit
|
|
BLOCK_BODY
|
|
BLOCK type=kotlin.Unit origin=WHEN
|
|
VAR name:x type:kotlin.Int [val]
|
|
CONST Int type=kotlin.Int value=0
|
|
BLOCK type=kotlin.Unit origin=WHEN
|
|
VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val]
|
|
GET_VAR 'val x: kotlin.Int [val] declared in <root>.foo' type=kotlin.Int origin=null
|
|
WHEN type=kotlin.Unit origin=WHEN
|
|
BRANCH
|
|
if: CONST Boolean type=kotlin.Boolean value=true
|
|
then: BLOCK type=kotlin.Unit origin=null
|
|
VAR name:z type:kotlin.Unit [val]
|
|
BLOCK type=kotlin.Unit origin=WHEN
|
|
VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val]
|
|
GET_VAR 'val x: kotlin.Int [val] declared in <root>.foo' type=kotlin.Int origin=null
|
|
WHEN type=kotlin.Unit origin=WHEN
|
|
BRANCH
|
|
if: CONST Boolean type=kotlin.Boolean value=true
|
|
then: BLOCK type=kotlin.Unit origin=null
|