[clang] [clang][AArch64] Do not allow implict conversion from SveFixedLengthData to svbool_t (PR #185434)
Benjamin Maxwell via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 9 07:52:13 PDT 2026
================
@@ -1627,7 +1627,8 @@ bool SemaARM::areCompatibleSveTypes(QualType FirstType, QualType SecondType) {
return BT->getKind() == BuiltinType::SveBool;
else if (VT->getVectorKind() == VectorKind::SveFixedLengthData)
return VT->getElementType().getCanonicalType() ==
- FirstType->getSveEltType(Context);
+ FirstType->getSveEltType(Context) &&
----------------
MacDue wrote:
Note: The element type for an `svbool_t` is reported as `UnsignedCharTy` (which is why this was allowed).
https://github.com/llvm/llvm-project/pull/185434
More information about the cfe-commits
mailing list