diff options
| author | gingerBill <bill@gingerbill.org> | 2019-02-24 10:30:58 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-02-24 10:30:58 +0000 |
| commit | a0c81c79add95ce7a96b0d943545aa8b6bd71713 (patch) | |
| tree | a3ddce23e7f5b4bbf37e3769d9aac9fa90240832 /src/ir_print.cpp | |
| parent | cdfaa643ccdc54e0fba3bc43536f33e5ae8debac (diff) | |
Fix bugs: Array Literals with constant elements; IR printing of raw procedure types
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index af5abe180..97194e794 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -316,8 +316,11 @@ void ir_print_proc_type_without_pointer(irFileBuffer *f, irModule *m, Type *t) { 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_write_string(f, str_lit("* noalias ")); - if (param_count > 0) ir_write_string(f, str_lit(", ")); + // 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(", ")); + } } isize param_index = 0; for (isize i = 0; i < param_count; i++) { |