[clang] [Clang] Fix ConstExpr comparing qualified atomic vec types (PR #199246)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed May 27 07:30:35 PDT 2026


================
@@ -11879,13 +11879,15 @@ bool VectorExprEvaluator::VisitBinaryOperator(const BinaryOperator *E) {
   Expr *LHS = E->getLHS();
   Expr *RHS = E->getRHS();
 
-  assert(LHS->getType()->isVectorType() && RHS->getType()->isVectorType() &&
+  QualType LHSTy = LHS->getType().getAtomicUnqualifiedType();
----------------
AaronBallman wrote:

Same question here as above; should we have already undergone the rvalue conversion?

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


More information about the cfe-commits mailing list