Commit 64d22b6f authored by Stefan Behnel's avatar Stefan Behnel

restrict enforced temp coercion in normal assignments to Python objects

parent e9956226
......@@ -4469,7 +4469,7 @@ class SingleAssignmentNode(AssignmentNode):
if use_temp or self.rhs.is_attribute:
# (cdef) attribute access is not safe as it traverses pointers
self.rhs = self.rhs.coerce_to_temp(env)
else:
elif self.rhs.type.is_pyobject:
self.rhs = self.rhs.coerce_to_simple(env)
def generate_rhs_evaluation_code(self, 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