@@ -1445,40 +1445,40 @@ void SemaRISCV::checkRVVTypeSupport(QualType Ty, SourceLocation Loc, Decl *D,
14451445
14461446 if (Info.ElementType ->isSpecificBuiltinType (BuiltinType::Double) &&
14471447 !FeatureMap.lookup (" zve64d" ))
1448- Diag (Loc, diag::err_riscv_type_requires_extension, D ) << Ty << " zve64d" ;
1448+ Diag (Loc, diag::err_riscv_type_requires_extension) << Ty << " zve64d" ;
14491449 // (ELEN, LMUL) pairs of (8, mf8), (16, mf4), (32, mf2), (64, m1) requires at
14501450 // least zve64x
14511451 else if (((EltSize == 64 && Info.ElementType ->isIntegerType ()) ||
14521452 MinElts == 1 ) &&
14531453 !FeatureMap.lookup (" zve64x" ))
1454- Diag (Loc, diag::err_riscv_type_requires_extension, D ) << Ty << " zve64x" ;
1454+ Diag (Loc, diag::err_riscv_type_requires_extension) << Ty << " zve64x" ;
14551455 else if (Info.ElementType ->isFloat16Type () && !FeatureMap.lookup (" zvfh" ) &&
14561456 !FeatureMap.lookup (" zvfhmin" ) &&
14571457 !FeatureMap.lookup (" xandesvpackfph" ))
14581458 if (DeclareAndesVectorBuiltins) {
1459- Diag (Loc, diag::err_riscv_type_requires_extension, D )
1459+ Diag (Loc, diag::err_riscv_type_requires_extension)
14601460 << Ty << " zvfh, zvfhmin or xandesvpackfph" ;
14611461 } else {
1462- Diag (Loc, diag::err_riscv_type_requires_extension, D )
1462+ Diag (Loc, diag::err_riscv_type_requires_extension)
14631463 << Ty << " zvfh or zvfhmin" ;
14641464 }
14651465 else if (Info.ElementType ->isBFloat16Type () &&
14661466 !FeatureMap.lookup (" zvfbfmin" ) &&
14671467 !FeatureMap.lookup (" xandesvbfhcvt" ) &&
14681468 !FeatureMap.lookup (" experimental-zvfbfa" ))
14691469 if (DeclareAndesVectorBuiltins) {
1470- Diag (Loc, diag::err_riscv_type_requires_extension, D )
1470+ Diag (Loc, diag::err_riscv_type_requires_extension)
14711471 << Ty << " zvfbfmin or xandesvbfhcvt" ;
14721472 } else {
1473- Diag (Loc, diag::err_riscv_type_requires_extension, D ) << Ty << " zvfbfmin" ;
1473+ Diag (Loc, diag::err_riscv_type_requires_extension) << Ty << " zvfbfmin" ;
14741474 }
14751475 else if (Info.ElementType ->isSpecificBuiltinType (BuiltinType::Float) &&
14761476 !FeatureMap.lookup (" zve32f" ))
1477- Diag (Loc, diag::err_riscv_type_requires_extension, D ) << Ty << " zve32f" ;
1477+ Diag (Loc, diag::err_riscv_type_requires_extension) << Ty << " zve32f" ;
14781478 // Given that caller already checked isRVVType() before calling this function,
14791479 // if we don't have at least zve32x supported, then we need to emit error.
14801480 else if (!FeatureMap.lookup (" zve32x" ))
1481- Diag (Loc, diag::err_riscv_type_requires_extension, D ) << Ty << " zve32x" ;
1481+ Diag (Loc, diag::err_riscv_type_requires_extension) << Ty << " zve32x" ;
14821482}
14831483
14841484// / Are the two types RVV-bitcast-compatible types? I.e. is bitcasting from the
0 commit comments