File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1394,8 +1394,7 @@ QualType ASTContext::getArrayDecayedType(QualType Ty) {
1394
1394
return PtrTy.getQualifiedType (PrettyArrayType->getIndexTypeQualifier ());
1395
1395
}
1396
1396
1397
- QualType ASTContext::getBaseElementType (const VariableArrayType *VAT)
1398
- {
1397
+ QualType ASTContext::getBaseElementType (const VariableArrayType *VAT) {
1399
1398
QualType ElemTy = VAT->getElementType ();
1400
1399
1401
1400
if (const VariableArrayType *VAT = getAsVariableArrayType (ElemTy))
@@ -1409,7 +1408,10 @@ QualType ASTContext::getBaseElementType(const VariableArrayType *VAT)
1409
1408
static FloatingRank getFloatingRank (QualType T) {
1410
1409
if (const ComplexType *CT = T->getAsComplexType ())
1411
1410
return getFloatingRank (CT->getElementType ());
1411
+ if (const VectorType *VT = T->getAsExtVectorType ())
1412
+ return getFloatingRank (VT->getElementType ());
1412
1413
1414
+ assert (T->getAsBuiltinType () && " getFloatingRank(): not a floating type" );
1413
1415
switch (T->getAsBuiltinType ()->getKind ()) {
1414
1416
default : assert (0 && " getFloatingRank(): not a floating type" );
1415
1417
case BuiltinType::Float: return FloatRank;
You can’t perform that action at this time.
0 commit comments