Author: Kazu Hirata Date: 2025-09-24T08:06:47-07:00 New Revision: 92e5060e4c2a5ddd422173204d33359009b2232c
URL: https://github.com/llvm/llvm-project/commit/92e5060e4c2a5ddd422173204d33359009b2232c DIFF: https://github.com/llvm/llvm-project/commit/92e5060e4c2a5ddd422173204d33359009b2232c.diff LOG: [AST] Fix a warning This patch fixes: clang/lib/AST/ByteCode/InterpBuiltin.cpp:2603:15: error: unused variable 'VT1' [-Werror,-Wunused-variable] Added: Modified: clang/lib/AST/ByteCode/InterpBuiltin.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/ByteCode/InterpBuiltin.cpp b/clang/lib/AST/ByteCode/InterpBuiltin.cpp index b3ece4ce580cb..9076946d29657 100644 --- a/clang/lib/AST/ByteCode/InterpBuiltin.cpp +++ b/clang/lib/AST/ByteCode/InterpBuiltin.cpp @@ -2600,7 +2600,8 @@ static bool interp__builtin_x86_pack(InterpState &S, CodePtr, const CallExpr *E, llvm::function_ref<APInt(const APSInt &)> PackFn) { const auto *VT0 = E->getArg(0)->getType()->castAs<VectorType>(); - const auto *VT1 = E->getArg(1)->getType()->castAs<VectorType>(); + [[maybe_unused]] const auto *VT1 = + E->getArg(1)->getType()->castAs<VectorType>(); assert(VT0 && VT1 && "pack builtin VT0 and VT1 must be VectorType"); assert(VT0->getElementType() == VT1->getElementType() && VT0->getNumElements() == VT1->getNumElements() && _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
