aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-05-09 13:18:57 +0100
committergingerBill <bill@gingerbill.org>2019-05-09 13:18:57 +0100
commit16f3bc2c0bae9ae3c5f293f49f27d2f9bc2854b5 (patch)
tree668d749886043c9231de9c2e7694dd7153feb6b2 /src/types.cpp
parent71a733e3b5bda4e8baafac35c7140e0b3a0d9445 (diff)
Allow comparisons with bit field values
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 33cd9c8fb..77db00a7e 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -1490,6 +1490,9 @@ bool is_type_comparable(Type *t) {
case Type_BitSet:
return true;
+ case Type_BitFieldValue:
+ return true;
+
case Type_Opaque:
return is_type_comparable(t->Opaque.elem);
}