From 0b08ae581edb5811d14d86e7c75c23aca59a3a34 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 15 Aug 2019 18:38:20 -0400 Subject: [PATCH] add assertion about control flow to fix gcc warning --- src/codegen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/codegen.cpp b/src/codegen.cpp index 45e2e4122f..982cb821b2 100644 --- 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