diff options
| author | gingerBill <bill@gingerbill.org> | 2021-03-23 22:09:16 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-03-23 22:09:16 +0000 |
| commit | d88d6a1fddf516533b23ca06803d239c97044a7f (patch) | |
| tree | 7888082557d515aacbe5e2a20ae310fbe83fa355 /src/check_type.cpp | |
| parent | f1e13bdddbfda3297e381c9350dc7e6188951eac (diff) | |
`bit_set` support in debug symbols by treating them like a bit field of 1 bit booleans
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 85c425ad4..eb2891cb7 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -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; |