diff --git a/src/InternArena.zig b/src/InternArena.zig index a8e9c75e50..5dba21e11c 100644 --- a/src/InternArena.zig +++ b/src/InternArena.zig @@ -187,8 +187,9 @@ pub fn deinit(ia: *InternArena, gpa: Allocator) void { } pub fn indexToKey(ia: InternArena, index: Index) Key { - const data = ia.items.items(.data)[@enumToInt(index)]; - return switch (ia.items.items(.tag)[@enumToInt(index)]) { + const item = ia.items.get(@enumToInt(index)); + const data = item.data; + return switch (item.tag) { .type_int_signed => .{ .int_type = .{ .signedness = .signed, diff --git a/src/codegen/spirv/type.zig b/src/codegen/spirv/type.zig index 3eef2d8040..d9504f4d23 100644 --- a/src/codegen/spirv/type.zig +++ b/src/codegen/spirv/type.zig @@ -157,8 +157,9 @@ pub const Type = extern union { _ = self; return @truncate(u32, t.hashShallow()); } - pub fn eql(self: @This(), a: Type, b: Type) bool { + pub fn eql(self: @This(), a: Type, b: Type, b_index: usize) bool { _ = self; + _ = b_index; return a.eqlShallow(b); } }; diff --git a/src/type.zig b/src/type.zig index 23a741eed0..5632629bff 100644 --- a/src/type.zig +++ b/src/type.zig @@ -798,8 +798,9 @@ pub const Type = extern union { _ = self; return @truncate(u32, t.hash()); } - pub fn eql(self: @This(), a: Type, b: Type) bool { + pub fn eql(self: @This(), a: Type, b: Type, b_index: usize) bool { _ = self; + _ = b_index; return a.eql(b); } }; diff --git a/src/value.zig b/src/value.zig index df1531533b..75c3aac6e7 100644 --- a/src/value.zig +++ b/src/value.zig @@ -1765,7 +1765,8 @@ pub const Value = extern union { const other_context: HashContext = .{ .ty = self.ty }; return @truncate(u32, other_context.hash(val)); } - pub fn eql(self: @This(), a: Value, b: Value) bool { + pub fn eql(self: @This(), a: Value, b: Value, b_index: usize) bool { + _ = b_index; return a.eql(b, self.ty); } };