Fix calculation of vector type sizes

This commit is contained in:
Ginger Bill
2017-05-04 23:18:54 +01:00
parent 789b297f32
commit 51ea59d76a
4 changed files with 22 additions and 20 deletions
+2 -2
View File
@@ -5380,7 +5380,7 @@ ExprKind check_expr_base_internal(Checker *c, Operand *o, AstNode *node, Type *t
fields_visited[sel.index.e[0]] = true;
check_expr(c, o, fv->value);
if (base_type(field->type) == t_any) {
if (is_type_any(field->type) || is_type_union(field->type) || is_type_raw_union(field->type)) {
is_constant = false;
}
if (is_constant) {
@@ -5418,7 +5418,7 @@ ExprKind check_expr_base_internal(Checker *c, Operand *o, AstNode *node, Type *t
continue;
}
if (base_type(field->type) == t_any) {
if (is_type_any(field->type) || is_type_union(field->type) || is_type_raw_union(field->type)) {
is_constant = false;
}
if (is_constant) {