Commit 1744ee74 authored by Stefan Behnel's avatar Stefan Behnel

mark node position in C file when starting to generate the node's code, not...

mark node position in C file when starting to generate the node's code, not that of the subexpressions

--HG--
extra : amend_source : 566ce3ed6bd0efbb075126a6c5823b773c72d2ea
parent cf796103
...@@ -583,13 +583,12 @@ class ExprNode(Node): ...@@ -583,13 +583,12 @@ class ExprNode(Node):
have_gil=self.in_nogil_context) have_gil=self.in_nogil_context)
def generate_evaluation_code(self, code): def generate_evaluation_code(self, code):
code.mark_pos(self.pos)
# Generate code to evaluate this node and # Generate code to evaluate this node and
# its sub-expressions, and dispose of any # its sub-expressions, and dispose of any
# temporary results of its sub-expressions. # temporary results of its sub-expressions.
self.generate_subexpr_evaluation_code(code) self.generate_subexpr_evaluation_code(code)
code.mark_pos(self.pos)
if self.is_temp: if self.is_temp:
self.allocate_temp_result(code) self.allocate_temp_result(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