Commit 3740a86b authored by Stefan Behnel's avatar Stefan Behnel

fix compiler crash

parent 00bd02fd
......@@ -4202,7 +4202,7 @@ class FinalOptimizePhase(Visitor.CythonTransform, Visitor.NodeRefCleanupMixin):
if function.type is Builtin.type_type:
may_be_a_method = False
elif function.is_attribute:
if function.entry.type.is_cfunction:
if function.entry and function.entry.type.is_cfunction:
# optimised builtin method
may_be_a_method = False
elif function.is_name:
......
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