authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-10-23 19:22:49-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-10-25 19:57:02-07:00
log426b5982d77fc78a736829f6b1b618eab6535fe1
tree13a41c3c828a634ca373f69772eed44ba626421f
parent7a106645fd2075634682fa458988ab7c24803f8a

Sema: move some TODO comments to an issue

Tracking issue: #17689

1 files changed, 0 insertions(+), 8 deletions(-)

src/Sema.zig-8
......@@ -16813,7 +16813,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1681316813 .val = .void_value,
1681416814 } }))),
1681516815 .Fn => {
16816 // TODO: look into memoizing this result.
1681716816 var params_anon_decl = try block.startAnonDecl();
1681816817 defer params_anon_decl.deinit();
1681916818
......@@ -17270,7 +17269,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1727017269 } })));
1727117270 },
1727217271 .Enum => {
17273 // TODO: look into memoizing this result.
1727417272 const is_exhaustive = Value.makeBool(ip.indexToKey(ty.toIntern()).enum_type.tag_mode != .nonexhaustive);
1727517273
1727617274 var fields_anon_decl = try block.startAnonDecl();
......@@ -17397,8 +17395,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1739717395 } })));
1739817396 },
1739917397 .Union => {
17400 // TODO: look into memoizing this result.
17401
1740217398 var fields_anon_decl = try block.startAnonDecl();
1740317399 defer fields_anon_decl.deinit();
1740417400
......@@ -17547,8 +17543,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1754717543 } })));
1754817544 },
1754917545 .Struct => {
17550 // TODO: look into memoizing this result.
17551
1755217546 var fields_anon_decl = try block.startAnonDecl();
1755317547 defer fields_anon_decl.deinit();
1755417548
......@@ -17781,8 +17775,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
1778117775 } })));
1778217776 },
1778317777 .Opaque => {
17784 // TODO: look into memoizing this result.
17785
1778617778 const type_opaque_ty = t: {
1778717779 const type_opaque_ty_decl_index = (try sema.namespaceLookup(
1778817780 block,