================ @@ -8927,8 +8927,13 @@ void Sema::CheckVariableDeclarationType(VarDecl *NewVD) { } } - if (T->isRVVSizelessBuiltinType()) - checkRVVTypeSupport(T, NewVD->getLocation(), cast<Decl>(CurContext)); + if (T->isRVVSizelessBuiltinType() && isa<FunctionDecl>(CurContext)) { + const FunctionDecl *FD = cast<FunctionDecl>(CurContext); + llvm::StringMap<bool> CallerFeatureMap; + Context.getFunctionFeatureMap(CallerFeatureMap, FD); ---------------- topperc wrote:
Does this impact compile time if the RVV types are used many times in a function as they would be for intrinsic code? https://github.com/llvm/llvm-project/pull/83674 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits