diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-10-23 19:22:49 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-10-25 19:57:02 -0700 |
| commit | 426b5982d77fc78a736829f6b1b618eab6535fe1 (patch) | |
| tree | 13a41c3c828a634ca373f69772eed44ba626421f /src | |
| parent | 7a106645fd2075634682fa458988ab7c24803f8a (diff) | |
| download | zig-426b5982d77fc78a736829f6b1b618eab6535fe1.tar.gz zig-426b5982d77fc78a736829f6b1b618eab6535fe1.zip | |
Sema: move some TODO comments to an issue
Tracking issue: #17689
Diffstat (limited to 'src')
| -rw-r--r-- | src/Sema.zig | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 7e9fa2d992..53c1560aae 100644 --- 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, |
