| author | |
| committer | |
| log | 4188faeac56d9c022fa33449aa4283b1f55395cf |
| tree | 08c4597b591291362921fa705ce114175de65f05 |
| parent | 4e1f3a9ba35530f129e43e11ac0676c562e4cb98 |
Unlike IrInstruction[Foo]s, which all start with:
IrInstruction base;
AstNodes do not work like this, and instead use a pointer to their
specializations. The code assumed otherwise.1 files changed, 1 insertions(+), 1 deletions(-)
src/ir.cpp+1-1| ... | ... | @@ -18507,7 +18507,7 @@ static Error ir_make_type_info_defs(IrAnalyze *ira, IrInstruction *source_instr, |
| 18507 | 18507 | return ErrorSemanticAnalyzeFail; |
| 18508 | 18508 | } |
| 18509 | 18509 | |
| 18510 | AstNodeFnProto *fn_node = (AstNodeFnProto *)(fn_entry->proto_node); | |
| 18510 | AstNodeFnProto *fn_node = &fn_entry->proto_node->data.fn_proto; | |
| 18511 | 18511 | |
| 18512 | 18512 | ConstExprValue *fn_def_val = create_const_vals(1); |
| 18513 | 18513 | fn_def_val->special = ConstValSpecialStatic; |