Commit ecdcf430 authored by Stefan Behnel's avatar Stefan Behnel

cleanup

parent 2350ce92
...@@ -3063,10 +3063,11 @@ class CascadedAssignmentNode(AssignmentNode): ...@@ -3063,10 +3063,11 @@ class CascadedAssignmentNode(AssignmentNode):
def analyse_types(self, env, use_temp = 0): def analyse_types(self, env, use_temp = 0):
self.rhs.analyse_types(env) self.rhs.analyse_types(env)
if use_temp and not self.rhs.is_simple(): if not self.rhs.is_simple():
self.rhs = self.rhs.coerce_to_temp(env) if use_temp:
else: self.rhs = self.rhs.coerce_to_temp(env)
self.rhs = self.rhs.coerce_to_simple(env) else:
self.rhs = self.rhs.coerce_to_simple(env)
from ExprNodes import CloneNode from ExprNodes import CloneNode
self.coerced_rhs_list = [] self.coerced_rhs_list = []
for lhs in self.lhs_list: for lhs in self.lhs_list:
......
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