mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
Sema: fix crash compiling an evented compiler
This commit is contained in:
@@ -23090,6 +23090,7 @@ fn checkAtomicPtrOperand(
|
||||
) CompileError!Air.Inst.Ref {
|
||||
const pt = sema.pt;
|
||||
const zcu = pt.zcu;
|
||||
try elem_ty.resolveLayout(pt);
|
||||
var diag: Zcu.AtomicPtrAlignmentDiagnostics = .{};
|
||||
const alignment = zcu.atomicPtrAlignment(elem_ty, &diag) catch |err| switch (err) {
|
||||
error.OutOfMemory => return error.OutOfMemory,
|
||||
|
||||
Reference in New Issue
Block a user