change vector constructors to require direct type equivalence for non-arithmetics

This commit is contained in:
Vern Paxson 2022-11-21 15:32:46 -08:00
parent c1e5389929
commit 47152e38c4
5 changed files with 63 additions and 12 deletions

View file

@ -3977,7 +3977,7 @@ VectorConstructorExpr::VectorConstructorExpr(ListExprPtr constructor_list, TypeP
return;
}
if ( auto t = merge_type_list(op->AsListExpr()) )
if ( auto t = maximal_type(op->AsListExpr()) )
SetType(make_intrusive<VectorType>(std::move(t)));
else
{