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