Commit fdf00273 authored by Stefan Behnel's avatar Stefan Behnel

more type check removal during optimisations

parent d15bbcd4
......@@ -1066,6 +1066,8 @@ class OptimizeBuiltinCalls(Visitor.EnvTransform):
return arg
else:
return arg.coerce_to(node.type, self.current_env())
if isinstance(arg, ExprNodes.PyTypeTestNode):
arg = arg.arg
if isinstance(arg, ExprNodes.CoerceToPyTypeNode):
if arg.type is PyrexTypes.py_object_type:
if node.type.assignable_from(arg.arg.type):
......
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