Commit 73bad093 authored by Stefan Behnel's avatar Stefan Behnel

fix annotation of optimised switch statement

parent 909b184d
...@@ -3692,6 +3692,7 @@ class SwitchCaseNode(StatNode): ...@@ -3692,6 +3692,7 @@ class SwitchCaseNode(StatNode):
def generate_execution_code(self, code): def generate_execution_code(self, code):
for cond in self.conditions: for cond in self.conditions:
code.mark_pos(cond.pos)
code.putln("case %s:" % cond.calculate_result_code()) code.putln("case %s:" % cond.calculate_result_code())
self.body.generate_execution_code(code) self.body.generate_execution_code(code)
code.putln("break;") code.putln("break;")
......
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