diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-02-27 17:47:18 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-02-27 17:47:18 -0500 |
| commit | d24345386274e3abcbcc676fe65bda127c06ce8e (patch) | |
| tree | b5945c207d3ce6dff2631af9c30f35d2e72c6c55 /src/analyze.cpp | |
| parent | 138d6f909321fb4fddeaa172357336c384c64eda (diff) | |
| download | zig-d24345386274e3abcbcc676fe65bda127c06ce8e.tar.gz zig-d24345386274e3abcbcc676fe65bda127c06ce8e.zip | |
Revert "llvm coroutine workaround: sret functions return sret pointer"
This reverts commit 132e604aa399a3bcb91996e550cf8972bd88422c.
this workaround didn't work either
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index f95c9396cb..ce9e99f8fa 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -1026,10 +1026,7 @@ TypeTableEntry *get_fn_type(CodeGen *g, FnTypeId *fn_type_id) { gen_param_index += 1; // after the gen_param_index += 1 because 0 is the return type param_di_types[gen_param_index] = gen_type->di_type; - - // as a workaround for LLVM coroutines not understanding instruction dependencies, - // we return the sret pointer argument instead of returning void - gen_return_type = gen_type; + gen_return_type = g->builtin_types.entry_void; } else { gen_return_type = fn_type_id->return_type; } |
