commit 3ce8d19f76690afe21b77651cffef9a9866cbf30 (tree)
parent 095c956c5c72927f428db370c30add007706b83e
Author: Jacob Young <jacobly0@users.noreply.github.com>
Date: Fri, 13 Jun 2025 15:37:13 -0400
llvm.ir: fix subrange version
Closes #23898
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/zig/llvm/ir.zig b/lib/std/zig/llvm/ir.zig
@@ -1064,7 +1064,7 @@ pub const MetadataBlock = struct {
pub const Subrange = struct {
pub const ops = [_]AbbrevOp{
.{ .literal = @intFromEnum(MetadataCode.SUBRANGE) },
- .{ .literal = 0b10 }, // is distinct | version
+ .{ .literal = 0 | (2 << 1) }, // is distinct | version
MetadataAbbrev, // count
MetadataAbbrev, // lower bound
.{ .literal = 0 }, // upper bound