Fix return types for while loops.
This commit is contained in:
committed by
max-kammerer
parent
4c8425caeb
commit
9ea39d2b7c
+2
-2
@@ -921,7 +921,7 @@ class ExpressionCodegen(
|
|||||||
mv.goTo(continueLabel)
|
mv.goTo(continueLabel)
|
||||||
mv.mark(endLabel)
|
mv.mark(endLabel)
|
||||||
|
|
||||||
return loop.onStack
|
return StackValue.none()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun visitBreakContinue(jump: IrBreakContinue, data: BlockInfo): StackValue {
|
override fun visitBreakContinue(jump: IrBreakContinue, data: BlockInfo): StackValue {
|
||||||
@@ -983,7 +983,7 @@ class ExpressionCodegen(
|
|||||||
generateLoopJump(loop.condition, data, entry, false)
|
generateLoopJump(loop.condition, data, entry, false)
|
||||||
mv.mark(endLabel)
|
mv.mark(endLabel)
|
||||||
|
|
||||||
return loop.onStack
|
return StackValue.none()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun visitTry(aTry: IrTry, data: BlockInfo): StackValue {
|
override fun visitTry(aTry: IrTry, data: BlockInfo): StackValue {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
// IGNORE_BACKEND: JS_IR
|
// IGNORE_BACKEND: JS_IR
|
||||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||||
// IGNORE_BACKEND: JS
|
// IGNORE_BACKEND: JS
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// FULL_JDK
|
// FULL_JDK
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
// FULL_JDK
|
// FULL_JDK
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|||||||
Reference in New Issue
Block a user