Commit 6d88e945 authored by Stefan Behnel's avatar Stefan Behnel

actually, drop the comments, they don't tell much anyway

parent 477d7def
......@@ -5007,10 +5007,7 @@ class YieldExprNode(ExprNode):
code.put_init_to_py_none(Naming.retval_cname, py_object_type)
saved = []
code.temp_allocator.reset()
temps_in_use = code.funcstate.temps_in_use()
if temps_in_use:
code.putln('/* Save temporary variables */')
for cname, type, manage_ref in temps_in_use:
for cname, type, manage_ref in code.funcstate.temps_in_use():
save_cname = code.temp_allocator.allocate_temp(type)
saved.append((cname, save_cname, type))
if type.is_pyobject:
......@@ -5023,8 +5020,6 @@ class YieldExprNode(ExprNode):
code.putln("%s->%s.resume_label = %d;" % (Naming.cur_scope_cname, Naming.obj_base_cname, self.label_num))
code.putln("return %s;" % Naming.retval_cname);
code.put_label(self.label_name)
if saved:
code.putln('/* Restore temporary variables */')
for cname, save_cname, type in saved:
code.putln('%s = %s->%s;' % (cname, Naming.cur_scope_cname, save_cname))
if type.is_pyobject:
......
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