Commit b8fa1e46 authored by Lisandro Dalcin's avatar Lisandro Dalcin

do not emit type_test_utility_code when type-testing builtin types

parent defeff2c
...@@ -4367,6 +4367,7 @@ class PyTypeTestNode(CoercionNode): ...@@ -4367,6 +4367,7 @@ class PyTypeTestNode(CoercionNode):
self.type = dst_type self.type = dst_type
self.gil_check(env) self.gil_check(env)
self.result_ctype = arg.ctype() self.result_ctype = arg.ctype()
if not dst_type.is_builtin_type:
env.use_utility_code(type_test_utility_code) env.use_utility_code(type_test_utility_code)
gil_message = "Python type test" gil_message = "Python type test"
......
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