[clang] [Clang][AArch64] Require SVE or SSVE for scalable types. (PR #91356)
Paul Walker via cfe-commits
cfe-commits at lists.llvm.org
Thu May 16 04:52:07 PDT 2024
================
@@ -8982,11 +8982,18 @@ void Sema::CheckVariableDeclarationType(VarDecl *NewVD) {
const FunctionDecl *FD = cast<FunctionDecl>(CurContext);
llvm::StringMap<bool> CallerFeatureMap;
Context.getFunctionFeatureMap(CallerFeatureMap, FD);
- if (!Builtin::evaluateRequiredTargetFeatures(
- "sve", CallerFeatureMap)) {
- Diag(NewVD->getLocation(), diag::err_sve_vector_in_non_sve_target) << T;
- NewVD->setInvalidDecl();
- return;
----------------
paulwalker-arm wrote:
Is dropping the immediate return upon setting up a diagnostic intentional?
https://github.com/llvm/llvm-project/pull/91356
More information about the cfe-commits
mailing list