aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 224ac8159..1d89f6e17 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -1088,7 +1088,9 @@ Type *core_array_type(Type *t) {
for (;;) {
Type *prev = t;
t = base_array_type(t);
- if (prev == t) break;
+ if (t->kind != Type_Array && t->kind != Type_SimdVector) {
+ break;
+ }
}
return t;
}