================
@@ -1513,11 +1528,23 @@ bool SemaRISCV::CheckBuiltinFunctionCall(const
TargetInfo &TI,
void SemaRISCV::checkRVVTypeSupport(QualType Ty, SourceLocation Loc, Decl *D,
const llvm::StringMap<bool> &FeatureMap) {
+ const BuiltinType *BT = Ty->castAs<BuiltinType>();
ASTContext::BuiltinVectorTypeInfo Info =
- SemaRef.Context.getBuiltinVectorTypeInfo(Ty->castAs<BuiltinType>());
+ SemaRef.Context.getBuiltinVectorTypeInfo(BT);
unsigned EltSize = SemaRef.Context.getTypeSize(Info.ElementType);
unsigned MinElts = Info.EC.getKnownMinValue();
+ auto IsOFP8Type = [&]() {
----------------
topperc wrote:
Drop the capture and pass BT to the lambda.
https://github.com/llvm/llvm-project/pull/191349
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits