authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-01-08 14:40:56-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-01-08 14:40:56-05:00
log4d5d0d3adad09e9ce34d281327c424de6402fcdb
tree61c156b39dd47a056e1ab4dbfd6a24485ba0670c
parentaa65b946711d6f51050977880f64a70f13637e45
signaturelock-open Commit is signed but in an unrecognized format.

`@typeInfo`: more correct return type info


1 files changed, 1 insertions(+), 6 deletions(-)

src/ir.cpp+1-6
......@@ -17100,12 +17100,7 @@ static Error ir_make_type_info_defs(IrAnalyze *ira, ConstExprValue *out_val, Sco
1710017100 ensure_field_index(fn_def_val->type, "return_type", 7);
1710117101 fn_def_fields[7].special = ConstValSpecialStatic;
1710217102 fn_def_fields[7].type = ira->codegen->builtin_types.entry_type;
17103 if (fn_entry->src_implicit_return_type != nullptr)
17104 fn_def_fields[7].data.x_type = fn_entry->src_implicit_return_type;
17105 else if (fn_entry->type_entry->data.fn.gen_return_type != nullptr)
17106 fn_def_fields[7].data.x_type = fn_entry->type_entry->data.fn.gen_return_type;
17107 else
17108 fn_def_fields[7].data.x_type = fn_entry->type_entry->data.fn.fn_type_id.return_type;
17103 fn_def_fields[7].data.x_type = fn_entry->type_entry->data.fn.fn_type_id.return_type;
1710917104 // arg_names: [][] const u8
1711017105 ensure_field_index(fn_def_val->type, "arg_names", 8);
1711117106 size_t fn_arg_count = fn_entry->variable_list.length;