zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 426b5982d77fc78a736829f6b1b618eab6535fe1 (tree)
parent 7a106645fd2075634682fa458988ab7c24803f8a
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon, 23 Oct 2023 19:22:49 -0700

Sema: move some TODO comments to an issue

Tracking issue: #17689

Diffstat:
Msrc/Sema.zig | 8--------
1 file changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/Sema.zig b/src/Sema.zig @@ -16813,7 +16813,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai .val = .void_value, } }))), .Fn => { - // TODO: look into memoizing this result. var params_anon_decl = try block.startAnonDecl(); defer params_anon_decl.deinit(); @@ -17270,7 +17269,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai } }))); }, .Enum => { - // TODO: look into memoizing this result. const is_exhaustive = Value.makeBool(ip.indexToKey(ty.toIntern()).enum_type.tag_mode != .nonexhaustive); var fields_anon_decl = try block.startAnonDecl(); @@ -17397,8 +17395,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai } }))); }, .Union => { - // TODO: look into memoizing this result. - var fields_anon_decl = try block.startAnonDecl(); defer fields_anon_decl.deinit(); @@ -17547,8 +17543,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai } }))); }, .Struct => { - // TODO: look into memoizing this result. - var fields_anon_decl = try block.startAnonDecl(); defer fields_anon_decl.deinit(); @@ -17781,8 +17775,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai } }))); }, .Opaque => { - // TODO: look into memoizing this result. - const type_opaque_ty = t: { const type_opaque_ty_decl_index = (try sema.namespaceLookup( block,