Commit 0b08ae581e

Andrew Kelley <andrew@ziglang.org>
2019-08-16 00:38:20
add assertion about control flow to fix gcc warning
1 parent 7e75e10
Changed files (1)
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