Commit a9b69669 authored by Stefan Behnel's avatar Stefan Behnel

fix compiler crash

parent cf9d6a26
...@@ -1186,11 +1186,11 @@ class SimplifyCalls(Visitor.EnvTransform): ...@@ -1186,11 +1186,11 @@ class SimplifyCalls(Visitor.EnvTransform):
kwargs = node.keyword_args kwargs = node.keyword_args
function = node.function function = node.function
if not function.is_name:
# TODO: optimise methods as well
return node
entry = function.entry entry = function.entry
if not entry: if not entry:
if not function.is_name:
# TODO: optimise methods as well
return node
entry = self.current_env().lookup(function.name) entry = self.current_env().lookup(function.name)
if not entry: if not entry:
return node return 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