Commit a7c1f2fb authored by Xavier Thompson's avatar Xavier Thompson

Avoid loading unrequired support code for CheckedResult exception signaling

parent d74dea45
...@@ -6169,7 +6169,7 @@ class SimpleCallNode(CallNode): ...@@ -6169,7 +6169,7 @@ class SimpleCallNode(CallNode):
self.nogil = env.nogil self.nogil = env.nogil
if (self.nogil and if (self.nogil and
func_type.exception_check and func_type.exception_check and
func_type.exception_check != '+'): func_type.exception_check not in ('+', '~')):
env.use_utility_code(pyerr_occurred_withgil_utility_code) env.use_utility_code(pyerr_occurred_withgil_utility_code)
# C++ exception handler # C++ exception handler
if func_type.exception_check == '+': if func_type.exception_check == '+':
......
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