do/while works now
This commit is contained in:
@@ -141,8 +141,7 @@ public class ExpressionCodegen extends JetVisitor {
|
|||||||
gen(expression.getBody(), Type.VOID_TYPE);
|
gen(expression.getBody(), Type.VOID_TYPE);
|
||||||
|
|
||||||
gen(expression.getCondition());
|
gen(expression.getCondition());
|
||||||
unboxBoolean();
|
myStack.pop().condJump(condition, true, v);
|
||||||
v.ifne(condition);
|
|
||||||
|
|
||||||
v.mark(end);
|
v.mark(end);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user