aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-03-01 17:54:49 +0000
committergingerBill <bill@gingerbill.org>2021-03-01 17:54:49 +0000
commit667aa3671e585fb348a2e05ddf0992c637b40ec4 (patch)
treea5b8102f5dea54caaee41c4dd240fef8ffc1c131 /src/types.cpp
parentb428e9ee142659de62064a0c6829b998b9446375 (diff)
Fix Addressing for SOA on store; Add intrinsics.type_struct_field_count(T)
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 793829d0e..b714b7798 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -1865,6 +1865,9 @@ bool is_type_comparable(Type *t) {
if (type_size_of(t) == 0) {
return false;
}
+ if (t->Struct.soa_kind != StructSoa_None) {
+ return false;
+ }
if (t->Struct.is_raw_union) {
return is_type_simple_compare(t);
}