diff options
| author | gingerBill <bill@gingerbill.org> | 2020-03-13 16:48:10 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-03-13 16:48:10 +0000 |
| commit | 10bac2445bb4e0e2b8e3b229f79a4bae9dedfdf7 (patch) | |
| tree | 9bd9e42f9eae543f8132cd3527044a8aac3cf93a /src | |
| parent | 06e364b9bd0761aa6445d8c630ee283694925b05 (diff) | |
Fix ir_print for byval types
Diffstat (limited to 'src')
| -rw-r--r-- | src/ir_print.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index fb224648d..6c1b5a792 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -338,13 +338,13 @@ void ir_print_proc_type_without_pointer(irFileBuffer *f, irModule *m, Type *t) { ir_write_string(f, str_lit(" (")); if (t->Proc.return_by_pointer) { ir_print_type(f, m, reduce_tuple_to_single_type(t->Proc.results)); - ir_fprintf(f, "* sret noalias "); + // ir_fprintf(f, "* sret noalias "); + // ir_write_string(f, str_lit("* noalias ")); + ir_write_string(f, str_lit("*")); if (build_context.ODIN_OS == "darwin" || build_context.ODIN_OS == "linux") { - ir_fprintf(f, "byval "); + ir_fprintf(f, " byval"); } - // ir_write_string(f, str_lit("* noalias ")); - // ir_write_string(f, str_lit("*")); if (param_count > 0 || t->Proc.calling_convention == ProcCC_Odin) { ir_write_string(f, str_lit(", ")); } |