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

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 7 07:09:30 PDT 2026


================
@@ -1619,14 +1619,18 @@ template <class Emitter>
 bool Compiler<Emitter>::VisitVectorBinOp(const BinaryOperator *E) {
   const Expr *LHS = E->getLHS();
   const Expr *RHS = E->getRHS();
+
+  QualType LHSTy = LHS->getType().getAtomicUnqualifiedType();
----------------
AmrDeveloper wrote:

I agree, it makes more sense to investigate more specifically in the Sema, as you mentioned, I will spend more time investigating and understanding how we handle Atomic in Sema & ConstEval 🫡 

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


More information about the cfe-commits mailing list