Commit b9386d5b authored by gsamain's avatar gsamain Committed by Xavier Thompson

Change checks for assigning cypclass to name node

parent c806d4fd
...@@ -2431,9 +2431,9 @@ class NameNode(AtomicExprNode): ...@@ -2431,9 +2431,9 @@ class NameNode(AtomicExprNode):
if is_external_ref: if is_external_ref:
rhs.generate_giveref(code) rhs.generate_giveref(code)
elif self.type.is_cyp_class: elif self.type.is_cyp_class:
code.put_cyxdecref(self.result()) if self.use_managed_ref:
if isinstance(rhs, NameNode):
rhs.make_owned_reference(code) rhs.make_owned_reference(code)
code.put_cyxdecref(self.result())
if not self.type.is_memoryviewslice: if not self.type.is_memoryviewslice:
if not assigned: if not assigned:
if overloaded_assignment: if overloaded_assignment:
......
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