[clang] [Clang][AArch64] Require SVE or SSVE for scalable types. (PR #91356)

Sander de Smalen via cfe-commits cfe-commits at lists.llvm.org
Thu May 16 08:06:46 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;
----------------
sdesmalen-arm wrote:

It was not, thanks.

https://github.com/llvm/llvm-project/pull/91356


More information about the cfe-commits mailing list