aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-04-09 00:52:45 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-04-09 00:52:45 -0400
commite85a10e9f5f6b17736babd321da8dceb72ea17af (patch)
tree70b94f7e1e5f761ad6fe95138ef9832cd0c32baf /src/codegen.cpp
parentcbda0fa78c37dd84821061309469c85a2281174c (diff)
downloadzig-e85a10e9f5f6b17736babd321da8dceb72ea17af.tar.gz
zig-e85a10e9f5f6b17736babd321da8dceb72ea17af.zip
async tcp server proof of concept
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp3
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;