bit_set support in debug symbols by treating them like a bit field of 1 bit booleans

This commit is contained in:
gingerBill
2021-03-23 22:09:16 +00:00
parent f1e13bdddb
commit d88d6a1fdd
3 changed files with 127 additions and 77 deletions
+1
View File
@@ -976,6 +976,7 @@ bool is_type_valid_bit_set_range(Type *t) {
void check_bit_set_type(CheckerContext *c, Type *type, Type *named_type, Ast *node) {
ast_node(bs, BitSetType, node);
GB_ASSERT(type->kind == Type_BitSet);
type->BitSet.node = node;
i64 const DEFAULT_BITS = cast(i64)(8*build_context.word_size);
i64 const MAX_BITS = 128;