add assertion about control flow to fix gcc warning

This commit is contained in:
Andrew Kelley 2019-08-15 18:38:20 -04:00
parent 7e75e1075e
commit 0b08ae581e
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -3849,6 +3849,8 @@ static LLVMValueRef ir_render_call(CodeGen *g, IrExecutable *executable, IrInstr
// Use the result location provided to the @asyncCall builtin
ret_ptr = result_loc;
}
} else {
zig_unreachable();
}
// even if prefix_arg_err_ret_stack is true, let the async function do its own