| ... | @@ -26792,10 +26792,10 @@ fn analyzeDeclVal( | ... | @@ -26792,10 +26792,10 @@ fn analyzeDeclVal( |
| 26792 | src: LazySrcLoc, | 26792 | src: LazySrcLoc, |
| 26793 | decl_index: Decl.Index, | 26793 | decl_index: Decl.Index, |
| 26794 | ) CompileError!Air.Inst.Ref { | 26794 | ) CompileError!Air.Inst.Ref { |
| | 26795 | try sema.addReferencedBy(block, src, decl_index); |
| 26795 | if (sema.decl_val_table.get(decl_index)) |result| { | 26796 | if (sema.decl_val_table.get(decl_index)) |result| { |
| 26796 | return result; | 26797 | return result; |
| 26797 | } | 26798 | } |
| 26798 | try sema.addReferencedBy(block, src, decl_index); | | |
| 26799 | const decl_ref = try sema.analyzeDeclRef(decl_index); | 26799 | const decl_ref = try sema.analyzeDeclRef(decl_index); |
| 26800 | const result = try sema.analyzeLoad(block, src, decl_ref, src); | 26800 | const result = try sema.analyzeLoad(block, src, decl_ref, src); |
| 26801 | if (Air.refToIndex(result)) |index| { | 26801 | if (Air.refToIndex(result)) |index| { |