Fix array of array arithmetic

This commit is contained in:
gingerBill
2017-11-07 23:02:53 +00:00
parent 9df3a94d33
commit b1d1497f4b
3 changed files with 31 additions and 31 deletions

View File

@@ -835,6 +835,16 @@ Type *base_array_type(Type *t) {
return t;
}
Type *core_array_or_vector_type(Type *t) {
for (;;) {
Type *prev = t;
t = base_array_type(t);
t = base_vector_type(t);
if (prev == t) break;
}
return t;
}
Type *base_complex_elem_type(Type *t) {
t = core_type(t);
if (is_type_complex(t)) {