aboutsummaryrefslogtreecommitdiff
path: root/src/InternPool.zig
diff options
context:
space:
mode:
authorMateusz Poliwczak <mpoliwczak34@gmail.com>2025-11-08 20:27:28 +0100
committerMatthew Lugg <mlugg@mlugg.co.uk>2025-11-09 10:45:14 +0000
commitbdbfc7de3fd3a05f338ec8beaa29894547a9df4c (patch)
tree7e63dbaf94a83e0117a2763658fda261d60a53c2 /src/InternPool.zig
parent5358af7ba4cf16bef1734729646b99842e439916 (diff)
downloadzig-bdbfc7de3fd3a05f338ec8beaa29894547a9df4c.tar.gz
zig-bdbfc7de3fd3a05f338ec8beaa29894547a9df4c.zip
std.zig.Zir: remove ref_start_index from enum fields of Index and OptionalIndex
This change removes the ref_start_index from the possible enum values of Index and OptionalIndex. It is not really a index, but a constant that tells the offset of static Refs, so lets move it where such constant belongs i.e. to the Ref.
Diffstat (limited to 'src/InternPool.zig')
-rw-r--r--src/InternPool.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig
index 2a5436787c..3bee7a3f94 100644
--- a/src/InternPool.zig
+++ b/src/InternPool.zig
@@ -5386,7 +5386,7 @@ pub const static_keys: [static_len]Key = .{
/// This is specified with an integer literal and a corresponding comptime
/// assert below to break an unfortunate and arguably incorrect dependency loop
/// when compiling.
-pub const static_len = Zir.Inst.Index.static_len;
+pub const static_len = Zir.Inst.Ref.static_len;
pub const Tag = enum(u8) {
/// This special tag represents a value which was removed from this pool via