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...@@ -16813,7 +16813,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
16813 .val = .void_value,16813 .val = .void_value,
16814 } }))),16814 } }))),
16815 .Fn => {16815 .Fn => {
16816 // TODO: look into memoizing this result.
16817 var params_anon_decl = try block.startAnonDecl();16816 var params_anon_decl = try block.startAnonDecl();
16818 defer params_anon_decl.deinit();16817 defer params_anon_decl.deinit();
1681916818
...@@ -17270,7 +17269,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai...@@ -17270,7 +17269,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
17270 } })));17269 } })));
17271 },17270 },
17272 .Enum => {17271 .Enum => {
17273 // TODO: look into memoizing this result.
17274 const is_exhaustive = Value.makeBool(ip.indexToKey(ty.toIntern()).enum_type.tag_mode != .nonexhaustive);17272 const is_exhaustive = Value.makeBool(ip.indexToKey(ty.toIntern()).enum_type.tag_mode != .nonexhaustive);
1727517273
17276 var fields_anon_decl = try block.startAnonDecl();17274 var fields_anon_decl = try block.startAnonDecl();
...@@ -17397,8 +17395,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai...@@ -17397,8 +17395,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
17397 } })));17395 } })));
17398 },17396 },
17399 .Union => {17397 .Union => {
17400 // TODO: look into memoizing this result.
17401
17402 var fields_anon_decl = try block.startAnonDecl();17398 var fields_anon_decl = try block.startAnonDecl();
17403 defer fields_anon_decl.deinit();17399 defer fields_anon_decl.deinit();
1740417400
...@@ -17547,8 +17543,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai...@@ -17547,8 +17543,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
17547 } })));17543 } })));
17548 },17544 },
17549 .Struct => {17545 .Struct => {
17550 // TODO: look into memoizing this result.
17551
17552 var fields_anon_decl = try block.startAnonDecl();17546 var fields_anon_decl = try block.startAnonDecl();
17553 defer fields_anon_decl.deinit();17547 defer fields_anon_decl.deinit();
1755417548
...@@ -17781,8 +17775,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai...@@ -17781,8 +17775,6 @@ fn zirTypeInfo(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Ai
17781 } })));17775 } })));
17782 },17776 },
17783 .Opaque => {17777 .Opaque => {
17784 // TODO: look into memoizing this result.
17785
17786 const type_opaque_ty = t: {17778 const type_opaque_ty = t: {
17787 const type_opaque_ty_decl_index = (try sema.namespaceLookup(17779 const type_opaque_ty_decl_index = (try sema.namespaceLookup(
17788 block,17780 block,