[FIR2IR] Don't emit empty body of while/do_while loop
Merge-request: KT-MR-12283 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
5b4409e34c
commit
e9d4de658d
@@ -1,7 +1,6 @@
|
||||
fun test() {
|
||||
var x: Int = 0
|
||||
while (less(arg0 = x, arg1 = 0)) { // BLOCK
|
||||
}
|
||||
while (less(arg0 = x, arg1 = 0))
|
||||
while (less(arg0 = x, arg1 = 5)) { // BLOCK
|
||||
val <unary>: Int = x
|
||||
x = <unary>.inc()
|
||||
@@ -14,9 +13,12 @@ fun test() {
|
||||
<unary>
|
||||
}
|
||||
}
|
||||
{ // BLOCK
|
||||
do while (less(arg0 = x, arg1 = 0))
|
||||
}
|
||||
{ // BLOCK
|
||||
do// COMPOSITE {
|
||||
// } while (less(arg0 = x, arg1 = 0))
|
||||
// } while (less(arg0 = x, arg1 = 7))
|
||||
}
|
||||
{ // BLOCK
|
||||
do{ // BLOCK
|
||||
|
||||
Reference in New Issue
Block a user