Commit 348e30f8 authored by Xavier Thompson's avatar Xavier Thompson

Fix CheckedResult signaling on functions returning void

parent a6a16577
......@@ -6228,7 +6228,9 @@ class SimpleCallNode(CallNode):
def is_c_result_required(self):
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 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