Commit bc06a7dc authored by Xavier Thompson's avatar Xavier Thompson

Fix CheckedResult signaling on functions returning void

parent a7c1f2fb
...@@ -6228,7 +6228,9 @@ class SimpleCallNode(CallNode): ...@@ -6228,7 +6228,9 @@ class SimpleCallNode(CallNode):
def is_c_result_required(self): def is_c_result_required(self):
func_type = self.function_type() func_type = self.function_type()
if not func_type.exception_value or func_type.exception_check in ('+', '~'): if func_type.exception_check == '~':
return True
if not func_type.exception_value or func_type.exception_check == '+':
return False # skip allocation of unused result temp return False # skip allocation of unused result temp
return True return 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