diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2024-07-11 21:36:34 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-07-12 00:43:38 -0700 |
| commit | 3ad81c40c01649551b4ad3d2c450d8b5f7934362 (patch) | |
| tree | 56775cdd64157a6756c6544f36ed58b00e9f627a /src/Sema.zig | |
| parent | ca752c61c08eaa06458bdc6fa3cc724c09a62f77 (diff) | |
| download | zig-3ad81c40c01649551b4ad3d2c450d8b5f7934362.tar.gz zig-3ad81c40c01649551b4ad3d2c450d8b5f7934362.zip | |
Zcu: allow atomic operations on packed structs
Same validation rules as the backing integer would have.
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 1062ece2be..896d18d21f 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -23950,7 +23950,7 @@ fn checkAtomicPtrOperand( error.BadType => return sema.fail( block, elem_ty_src, - "expected bool, integer, float, enum, or pointer type; found '{}'", + "expected bool, integer, float, enum, packed struct, or pointer type; found '{}'", .{elem_ty.fmt(pt)}, ), }; @@ -24279,7 +24279,7 @@ fn zirCmpxchg( return sema.fail( block, elem_ty_src, - "expected bool, integer, enum, or pointer type; found '{}'", + "expected bool, integer, enum, packed struct, or pointer type; found '{}'", .{elem_ty.fmt(pt)}, ); } |
