Commit 5d121036 authored by Stefan Behnel's avatar Stefan Behnel

fix for refnanny C code in dict iteration: generate all GOTREFs before all...

fix for refnanny C code in dict iteration: generate all GOTREFs before all coercions before all assignments to properly handle error cases
parent e6d53b23
...@@ -5370,8 +5370,8 @@ class DictIterationNextNode(Node): ...@@ -5370,8 +5370,8 @@ class DictIterationNextNode(Node):
# evaluate all coercions before the assignments # evaluate all coercions before the assignments
for var, result, target in assignments: for var, result, target in assignments:
code.put_gotref(var.result()) code.put_gotref(var.result())
for var, result, target in assignments:
result.generate_evaluation_code(code) result.generate_evaluation_code(code)
for var, result, target in assignments: for var, result, target in assignments:
target.generate_assignment_code(result, code) target.generate_assignment_code(result, code)
var.release(code) var.release(code)
......
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