[PATCH] D124860: [clang][AArch64][SVE] Implicit conversions for vector-scalar operations

Peter Waller via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 12 01:53:01 PDT 2022


peterwaller-arm added inline comments.


================
Comment at: clang/lib/Sema/SemaExpr.cpp:10586
+      (!LHSBuiltinTy && !LHSBuiltinTy->isVLSTBuiltinType() &&
+       !LHSType->isRealType())) {
+    Diag(Loc, diag::err_typecheck_vector_not_convertable_non_scalar)
----------------
`!Ptr && [Deref Ptr]` looks suspicious. Also, if I insert an abort in this path and run check-clang I don't see any failing tests?

It might help to name `LHSBuiltinTy && LHSBuiltinTy->isVLSTBuiltinType()` `IsLHSVector` (likewise for RHS) or similar.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124860/new/

https://reviews.llvm.org/D124860



More information about the cfe-commits mailing list