Commit 63c23fbe authored by Stefan Behnel's avatar Stefan Behnel

prevent temp allocation tweak from applying to memory views

parent 65ce3e72
...@@ -565,7 +565,7 @@ class ExprNode(Node): ...@@ -565,7 +565,7 @@ class ExprNode(Node):
if not type.is_void: if not type.is_void:
if type.is_pyobject: if type.is_pyobject:
type = PyrexTypes.py_object_type type = PyrexTypes.py_object_type
elif not self.result_is_used and not self.is_c_result_required(): elif not (self.result_is_used or type.is_memoryviewslice or self.is_c_result_required()):
self.temp_code = None self.temp_code = None
return return
self.temp_code = code.funcstate.allocate_temp( self.temp_code = code.funcstate.allocate_temp(
......
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