Commit 1dc8c799 authored by Stefan Behnel's avatar Stefan Behnel

remove some useless temping (not sure if it's needed at all, but lacks tests)

parent 05a1bbca
......@@ -4640,7 +4640,7 @@ class SingleAssignmentNode(AssignmentNode):
dtype = self.lhs.type
self.rhs = self.rhs.coerce_to(dtype, env)
if use_temp or self.rhs.is_attribute:
if use_temp or (self.rhs.is_attribute and not self.lhs.is_name):
# (cdef) attribute access is not safe as it traverses pointers
self.rhs = self.rhs.coerce_to_temp(env)
elif self.rhs.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