llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Ingo Müller (ingomueller-net) <details> <summary>Changes</summary> This PR suppresses a compiler warning, which turns into an error with `-Werror`, for a variable introduced in #<!-- -->169276 and only used in an assertion (which is, thus, unused if compiled without assertions). --- Full diff: https://github.com/llvm/llvm-project/pull/169822.diff 1 Files Affected: - (modified) clang/lib/AST/ExprConstant.cpp (+1) ``````````diff diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 7b9380de6834d..431b58f4627bb 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -12181,6 +12181,7 @@ static bool evalShiftWithCount( QualType SourceTy = Call->getArg(0)->getType(); QualType CountTy = Call->getArg(1)->getType(); assert(SourceTy->isVectorType() && CountTy->isVectorType()); + (void)CountTy; QualType DestEltTy = SourceTy->castAs<VectorType>()->getElementType(); unsigned DestEltWidth = Source.getVectorElt(0).getInt().getBitWidth(); `````````` </details> https://github.com/llvm/llvm-project/pull/169822 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
