aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-11-20 22:07:12 +0000
committergingerBill <bill@gingerbill.org>2019-11-20 22:07:12 +0000
commite01d8a04a959e4cb1fa99cb5591b09a0d254a571 (patch)
tree9c23a52c673b741ff57f03fa933d2d069290a725 /src/types.cpp
parent69afa33fa540284bcac9f0541e1badc43704078e (diff)
Fix String causes a crash when used in a polymorphic type #483
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;
}