[clang] [Clang][Sema] Do not accept "vector _Complex" for AltiVec/ZVector (PR #90467)
Ulrich Weigand via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 29 23:57:43 PDT 2024
================
@@ -1191,6 +1191,10 @@ void DeclSpec::Finish(Sema &S, const PrintingPolicy &Policy) {
// Validate and finalize AltiVec vector declspec.
if (TypeAltiVecVector) {
+ // Complex vector types are not supported.
+ if (TypeSpecComplex != TSC_unspecified)
+ S.Diag(TSCLoc, diag::err_invalid_vector_complex_decl_spec);
----------------
uweigand wrote:
Makes sense. I've updated the patches.
https://github.com/llvm/llvm-project/pull/90467
More information about the cfe-commits
mailing list