mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 01:04:43 +01:00
Sema: fix crash compiling an evented compiler
This commit is contained in:
parent
2961cf1dac
commit
b48599c549
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue