Fix return types for while loops.

This commit is contained in:
Steven Schäfer
2019-03-11 13:09:17 +01:00
committed by max-kammerer
parent 4c8425caeb
commit 9ea39d2b7c
4 changed files with 2 additions and 5 deletions
@@ -921,7 +921,7 @@ class ExpressionCodegen(
mv.goTo(continueLabel)
mv.mark(endLabel)
return loop.onStack
return StackValue.none()
}
override fun visitBreakContinue(jump: IrBreakContinue, data: BlockInfo): StackValue {
@@ -983,7 +983,7 @@ class ExpressionCodegen(
generateLoopJump(loop.condition, data, entry, false)
mv.mark(endLabel)
return loop.onStack
return StackValue.none()
}
override fun visitTry(aTry: IrTry, data: BlockInfo): StackValue {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// FULL_JDK
// WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// FULL_JDK
// WITH_RUNTIME