From 4bb7cd5e4b75e8f2c3f1d3ab5669dc11f95339e5 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 7 Mar 2024 11:31:00 +0000 Subject: [PATCH] Add `bit_field` option to `core_type` in the compiler --- src/types.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/types.cpp b/src/types.cpp index b442acd53..e9e91dcd4 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -932,6 +932,9 @@ gb_internal Type *core_type(Type *t) { case Type_Enum: t = t->Enum.base_type; continue; + case Type_BitField: + t = t->BitField.backing_type; + continue; } break; }