Zir: make src_line absolute for declaration instructions

We need special logic for updating line numbers anyway, so it's fine to
just use absolute numbers here. This eliminates a field from `Decl`.
This commit is contained in:
mlugg
2024-06-22 00:29:38 +01:00
parent 3e9ab6aa7b
commit 5b523d0469
10 changed files with 93 additions and 70 deletions

View File

@@ -6958,7 +6958,6 @@ fn finishFuncInstance(
const decl_index = try ip.createDecl(gpa, .{
.name = undefined,
.src_namespace = fn_owner_decl.src_namespace,
.src_line = fn_owner_decl.src_line,
.has_tv = true,
.owns_tv = true,
.val = @import("Value.zig").fromInterned(func_index),