aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-04-09 00:53:16 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-04-09 00:53:16 -0400
commit9ef1ba9d54e560ca384c95b74067674878aea019 (patch)
tree70b94f7e1e5f761ad6fe95138ef9832cd0c32baf /src/codegen.cpp
parent292d0cbdadd453874af6e2065638a88d4dda8a10 (diff)
parente85a10e9f5f6b17736babd321da8dceb72ea17af (diff)
downloadzig-9ef1ba9d54e560ca384c95b74067674878aea019.tar.gz
zig-9ef1ba9d54e560ca384c95b74067674878aea019.zip
Merge branch 'async-tcp-server'
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;