From 71917947a397480145f3ae28f8dda3c83c44dd08 Mon Sep 17 00:00:00 2001 From: kcbanner Date: Sun, 9 Mar 2025 17:00:27 -0400 Subject: [PATCH] PerThread: add missing `.opaque_type` entry in `ensureTypeUpToDate` --- src/Zcu/PerThread.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig index 699315835a75..81adebd19b2f 100644 --- a/src/Zcu/PerThread.zig +++ b/src/Zcu/PerThread.zig @@ -3712,7 +3712,7 @@ pub fn ensureTypeUpToDate(pt: Zcu.PerThread, ty: InternPool.Index) Zcu.SemaError } const ty_key = switch (ip.indexToKey(ty)) { - .struct_type, .union_type, .enum_type => |key| key, + .struct_type, .union_type, .enum_type, .opaque_type => |key| key, else => unreachable, }; const declared_ty_key = switch (ty_key) {