Commit af7fa72e authored by Stefan Behnel's avatar Stefan Behnel

fix safety coercion after call node optimisation

parent 7bbd22bd
...@@ -1189,7 +1189,8 @@ class SimplifyCalls(Visitor.EnvTransform): ...@@ -1189,7 +1189,8 @@ class SimplifyCalls(Visitor.EnvTransform):
args=args) args=args)
call_node.analyse_types(self.current_env()) call_node.analyse_types(self.current_env())
if node.type != call_node.type: if node.type != call_node.type:
call_node = call_node.coerce_to(node.type) call_node = call_node.coerce_to(
node.type, self.current_env())
return call_node return call_node
......
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