diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-04-09 00:52:45 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-04-09 00:52:45 -0400 |
| commit | e85a10e9f5f6b17736babd321da8dceb72ea17af (patch) | |
| tree | 70b94f7e1e5f761ad6fe95138ef9832cd0c32baf /src/codegen.cpp | |
| parent | cbda0fa78c37dd84821061309469c85a2281174c (diff) | |
| download | zig-e85a10e9f5f6b17736babd321da8dceb72ea17af.tar.gz zig-e85a10e9f5f6b17736babd321da8dceb72ea17af.zip | |
async tcp server proof of concept
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index be83f68349..2aca143524 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -408,6 +408,9 @@ static uint32_t get_err_ret_trace_arg_index(CodeGen *g, FnTableEntry *fn_table_e if (!g->have_err_ret_tracing) { return UINT32_MAX; } + if (fn_table_entry->type_entry->data.fn.fn_type_id.cc == CallingConventionAsync) { + return 0; + } TypeTableEntry *fn_type = fn_table_entry->type_entry; if (!fn_type_can_fail(&fn_type->data.fn.fn_type_id)) { return UINT32_MAX; |
