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

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 18 10:57:15 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:

Found more atomic issues :D 

https://godbolt.org/z/4nWPznTaz

I will investigate and try to fix both (Hopefully :D)

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


More information about the cfe-commits mailing list