Commit 3a2d9fc4 authored by Stefan Behnel's avatar Stefan Behnel

make CallNode a NewTempExprNode

parent 9132d124
...@@ -678,7 +678,8 @@ class NewTempExprNode(ExprNode): ...@@ -678,7 +678,8 @@ class NewTempExprNode(ExprNode):
def free_temps(self, code): def free_temps(self, code):
if self.is_temp: if self.is_temp:
self.release_temp_result(code) if not self.type.is_void:
self.release_temp_result(code)
else: else:
self.free_subexpr_temps(code) self.free_subexpr_temps(code)
...@@ -2089,7 +2090,7 @@ class SliceNode(ExprNode): ...@@ -2089,7 +2090,7 @@ class SliceNode(ExprNode):
code.error_goto_if_null(self.result(), self.pos))) code.error_goto_if_null(self.result(), self.pos)))
class CallNode(ExprNode): class CallNode(NewTempExprNode):
def gil_check(self, env): def gil_check(self, env):
# Make sure we're not in a nogil environment # Make sure we're not in a nogil environment
if env.nogil: if env.nogil:
......
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