diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-09-21 01:49:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-21 01:49:28 -0700 |
| commit | 010d9a63f20d8a4bd14cff0ada690b2d127a0371 (patch) | |
| tree | 12b56ddfe5a5b235ef0676832902a0b04ad7d57a /lib/std/Target.zig | |
| parent | 3fbb88c4bd146ca7bd9e7ab5da9c4b05298f3b34 (diff) | |
| parent | 633162eb0c8d302ba7585cd308e01237409f042e (diff) | |
| download | zig-010d9a63f20d8a4bd14cff0ada690b2d127a0371.tar.gz zig-010d9a63f20d8a4bd14cff0ada690b2d127a0371.zip | |
Merge pull request #25154 from ziglang/no-decl-val-3
rework byval ZIR instructions; forbid runtime vector indexes
Diffstat (limited to 'lib/std/Target.zig')
| -rw-r--r-- | lib/std/Target.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Target.zig b/lib/std/Target.zig index 5773faa5f2..027872de54 100644 --- a/lib/std/Target.zig +++ b/lib/std/Target.zig @@ -1187,7 +1187,7 @@ pub const Cpu = struct { pub const Index = std.math.Log2Int(std.meta.Int(.unsigned, usize_count * @bitSizeOf(usize))); pub const ShiftInt = std.math.Log2Int(usize); - pub const empty = Set{ .ints = [1]usize{0} ** usize_count }; + pub const empty: Set = .{ .ints = @splat(0) }; pub fn isEmpty(set: Set) bool { return for (set.ints) |x| { |
