diff options
| author | Vexu <git@vexu.eu> | 2020-12-09 13:54:26 +0200 |
|---|---|---|
| committer | Vexu <git@vexu.eu> | 2020-12-09 13:54:26 +0200 |
| commit | 7e30e8390044fbd396966b6e21d2de980d6f915f (patch) | |
| tree | 34a2fe2a2667b86f90c5498ac92b453ed15d3aaa /src/stage1/ir.cpp | |
| parent | be71994fb1cd0e638a0ce499c28a23940d3415ff (diff) | |
| download | zig-7e30e8390044fbd396966b6e21d2de980d6f915f.tar.gz zig-7e30e8390044fbd396966b6e21d2de980d6f915f.zip | |
small fixes and zig fmt
Diffstat (limited to 'src/stage1/ir.cpp')
| -rw-r--r-- | src/stage1/ir.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/stage1/ir.cpp b/src/stage1/ir.cpp index 923b3f7a7e..608faed812 100644 --- a/src/stage1/ir.cpp +++ b/src/stage1/ir.cpp @@ -25312,24 +25312,6 @@ static Error ir_make_type_info_decls(IrAnalyze *ira, IrInst* source_instr, ZigVa inner_fields[2]->data.x_union.payload = fn_decl_val; break; } - case TldIdContainer: - { - ZigType *type_entry = ((TldContainer *)curr_entry->value)->type_entry; - if ((err = type_resolve(ira->codegen, type_entry, ResolveStatusSizeKnown))) - return ErrorSemanticAnalyzeFail; - - // This is a type. - bigint_init_unsigned(&inner_fields[2]->data.x_union.tag, 0); - - ZigValue *payload = ira->codegen->pass1_arena->create<ZigValue>(); - payload->special = ConstValSpecialStatic; - payload->type = ira->codegen->builtin_types.entry_type; - payload->data.x_type = type_entry; - - inner_fields[2]->data.x_union.payload = payload; - - break; - } default: zig_unreachable(); } |
