aboutsummaryrefslogtreecommitdiff
path: root/base/runtime
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-04-10 00:57:21 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-04-10 01:01:32 +0200
commitaf6d2480fa7202924ea05d65cdad65aa9e764d05 (patch)
tree802356a4a4dd38aaccf88972b09bb9b03cf544b0 /base/runtime
parenta00d96c0de2c0b6e4df76e58c1c394373e173751 (diff)
add bit_field parsing to `core:odin/parser`
Also adds it to the core type thingy like it is in the compiler.
Diffstat (limited to 'base/runtime')
-rw-r--r--base/runtime/core.odin5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/runtime/core.odin b/base/runtime/core.odin
index 7ad3ef1d6..c62301c34 100644
--- a/base/runtime/core.odin
+++ b/base/runtime/core.odin
@@ -597,8 +597,9 @@ type_info_core :: proc "contextless" (info: ^Type_Info) -> ^Type_Info {
base := info
loop: for {
#partial switch i in base.variant {
- case Type_Info_Named: base = i.base
- case Type_Info_Enum: base = i.base
+ case Type_Info_Named: base = i.base
+ case Type_Info_Enum: base = i.base
+ case Type_Info_Bit_Field: base = i.backing_type
case: break loop
}
}