commit 0b08ae581edb5811d14d86e7c75c23aca59a3a34 (tree)
parent 7e75e1075e14a124706bf5f22244ca6b6e814fdb
Author: Andrew Kelley <andrew@ziglang.org>
Date: Thu, 15 Aug 2019 18:38:20 -0400
add assertion about control flow to fix gcc warning
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/codegen.cpp b/src/codegen.cpp
@@ -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