Author: Timm Baeder
Date: 2026-09-23T09:58:32Z
New Revision: 6f6f737a6a5c08620c0108161e68dbce190897a7

URL: 
https://github.com/llvm/llvm-project/commit/6f6f737a6a5c08620c0108161e68dbce190897a7
DIFF: 
https://github.com/llvm/llvm-project/commit/6f6f737a6a5c08620c0108161e68dbce190897a7.diff

LOG: [clang][ExprConst] Mark two variables maybe_unused (#225652)

Fix the two buildbot failures from
https://github.com/llvm/llvm-project/pull/225125

Added: 
    

Modified: 
    clang/lib/AST/ExprConstant.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index bb7721df5a28b..2df754dc9007f 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -12244,8 +12244,8 @@ bool VectorExprEvaluator::VisitBinaryOperator(const 
BinaryOperator *E) {
   Expr *LHS = E->getLHS();
   Expr *RHS = E->getRHS();
 
-  QualType LHSType = LHS->getType().getAtomicUnqualifiedType();
-  QualType RHSType = RHS->getType().getAtomicUnqualifiedType();
+  [[maybe_unused]] QualType LHSType = 
LHS->getType().getAtomicUnqualifiedType();
+  [[maybe_unused]] QualType RHSType = 
RHS->getType().getAtomicUnqualifiedType();
   assert(LHSType->isVectorType() && RHSType->isVectorType() &&
          "Must both be vector types");
   // Checking JUST the types are the same would be fine, except shifts don't


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

Reply via email to