aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-03-07 11:31:00 +0000
committergingerBill <bill@gingerbill.org>2024-03-07 11:31:00 +0000
commit4bb7cd5e4b75e8f2c3f1d3ab5669dc11f95339e5 (patch)
treeedc10d33bbec40cdfc85c5b907bf992ba44c21d6 /src
parent6d5b1800fea69ea588c71bdcca3ca402d7a1b2df (diff)
Add `bit_field` option to `core_type` in the compiler
Diffstat (limited to 'src')
-rw-r--r--src/types.cpp3
1 files changed, 3 insertions, 0 deletions
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;
}