================
@@ -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 found that the assert trigger only in the C mode, not in C++

https://godbolt.org/z/adf4e9vMf

I would expect that the qualifier is stripped too. I will run clang-ast locally 
to compare the two modes 🤔, especially the `NonAtomicToAtomic` cast 

https://github.com/llvm/llvm-project/pull/199246
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to