Commit be892b0e authored by Stefan Behnel's avatar Stefan Behnel

fix compiler crash in optimiser dispatch code

--HG--
extra : rebase_source : d0d280010b14401c44e70a279dc9066031ba7de7
parent 228fc4c9
...@@ -442,8 +442,8 @@ class MethodDispatcherTransform(EnvTransform): ...@@ -442,8 +442,8 @@ class MethodDispatcherTransform(EnvTransform):
obj_type = self_arg.type obj_type = self_arg.type
is_unbound_method = False is_unbound_method = False
if obj_type.is_builtin_type: if obj_type.is_builtin_type:
if obj_type is Builtin.type_type and arg_list and\ if (obj_type is Builtin.type_type and self_arg.is_name and
arg_list[0].type.is_pyobject: arg_list and arg_list[0].type.is_pyobject):
# calling an unbound method like 'list.append(L,x)' # calling an unbound method like 'list.append(L,x)'
# (ignoring 'type.mro()' here ...) # (ignoring 'type.mro()' here ...)
type_name = function.obj.name type_name = function.obj.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