aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-08-14 18:32:34 +0100
committergingerBill <bill@gingerbill.org>2018-08-14 18:32:34 +0100
commit966249c10a32425b408df5a5ea6085781f38b8a7 (patch)
tree2338b20fac3e649db3f2682fe3cfd4218b300bad /src/types.cpp
parentacc010cba5df63b38704245254e721187335a7b2 (diff)
`bit_set` constants
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 73e889922..23f0aa38b 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -757,6 +757,9 @@ bool is_type_constant_type(Type *t) {
if (t->kind == Type_Basic) {
return (t->Basic.flags & BasicFlag_ConstantType) != 0;
}
+ if (t->kind == Type_BitSet) {
+ return true;
+ }
return false;
}
bool is_type_float(Type *t) {