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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user