diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-07-26 17:07:19 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-07-26 17:07:19 -0400 |
| commit | 018a89c7a1b2763a50375f6d6d168dfa1f877f6a (patch) | |
| tree | 7c7b11d25b445f23fb0925ae811fd84e07e0897e /src/analyze.cpp | |
| parent | 7b3686861f87d006da817db98f7d3b13fada9815 (diff) | |
| download | zig-018a89c7a1b2763a50375f6d6d168dfa1f877f6a.tar.gz zig-018a89c7a1b2763a50375f6d6d168dfa1f877f6a.zip | |
async functions return void, no more GetSize resume block
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index c8e02a4771..e1fedab7cf 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -7254,7 +7254,7 @@ static void resolve_llvm_types_fn_type(CodeGen *g, ZigType *fn_type) { ZigList<ZigLLVMDIType *> param_di_types = {}; ZigType *gen_return_type; if (is_async) { - gen_return_type = g->builtin_types.entry_usize; + gen_return_type = g->builtin_types.entry_void; param_di_types.append(get_llvm_di_type(g, gen_return_type)); } else if (!type_has_bits(fn_type_id->return_type)) { gen_return_type = g->builtin_types.entry_void; @@ -7354,7 +7354,7 @@ void resolve_llvm_types_fn(CodeGen *g, ZigFn *fn) { return; } - ZigType *gen_return_type = g->builtin_types.entry_usize; + ZigType *gen_return_type = g->builtin_types.entry_void; ZigList<ZigLLVMDIType *> param_di_types = {}; // first "parameter" is return value param_di_types.append(get_llvm_di_type(g, gen_return_type)); |
