Commit c445411f authored by Stefan Behnel's avatar Stefan Behnel

make intermediate goto-labels more readable by postfixing them with their purpose

parent 90d54373
......@@ -574,9 +574,9 @@ class FunctionState(object):
def all_new_labels(self):
old_labels = self.get_all_labels()
new_labels = []
for old_label in old_labels:
for old_label, name in zip(old_labels, ['continue', 'break', 'return', 'error']):
if old_label:
new_labels.append(self.new_label())
new_labels.append(self.new_label(name))
else:
new_labels.append(old_label)
self.set_all_labels(new_labels)
......
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