Commit 461b8932 authored by Stefan Behnel's avatar Stefan Behnel

improve annotation for else-clause in while-loop

parent 20cab432
......@@ -5457,6 +5457,7 @@ class WhileStatNode(LoopNode, StatNode):
break_label = code.break_label
code.set_loop_labels(old_loop_labels)
if self.else_clause:
code.mark_pos(self.else_clause.pos)
code.putln("/*else*/ {")
self.else_clause.generate_execution_code(code)
code.putln("}")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment