Commit b353c1e8 authored by Stefan Behnel's avatar Stefan Behnel

disable redundant exception checks for optimised builtins

parent 9016bdb2
......@@ -87,6 +87,7 @@ class _BuiltinOverride(object):
def build_func_type(self, sig=None, self_arg=None):
if sig is None:
sig = Signature(self.args, self.ret_type)
sig.exception_check = False # not needed for the current builtins
func_type = sig.function_type(self_arg)
if self.is_strict_signature:
func_type.is_strict_signature = True
......
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