mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 01:04:43 +01:00
jacob broke the law
This commit is contained in:
parent
6b185e94b9
commit
eb25a3e653
1 changed files with 1 additions and 1 deletions
|
|
@ -22236,7 +22236,7 @@ fn checkAtomicPtrOperand(
|
|||
) CompileError!Air.Inst.Ref {
|
||||
const pt = sema.pt;
|
||||
const zcu = pt.zcu;
|
||||
try elem_ty.resolveLayout(pt);
|
||||
try sema.ensureLayoutResolved(elem_ty, elem_ty_src, .ptr_access);
|
||||
var diag: Zcu.AtomicPtrAlignmentDiagnostics = .{};
|
||||
const alignment = zcu.atomicPtrAlignment(elem_ty, &diag) catch |err| switch (err) {
|
||||
error.OutOfMemory => return error.OutOfMemory,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue