Author: Kazu Hirata Date: 2025-05-29T15:48:14-07:00 New Revision: 882e7331c4ba5582d3881b7bb93c0952e601336b
URL: https://github.com/llvm/llvm-project/commit/882e7331c4ba5582d3881b7bb93c0952e601336b DIFF: https://github.com/llvm/llvm-project/commit/882e7331c4ba5582d3881b7bb93c0952e601336b.diff LOG: [AST] Fix a warning This patch fixes: clang/lib/AST/ByteCode/InterpBuiltin.cpp:767:12: error: unused variable 'PtrT' [-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 3b47d868cfbc6..bfad4e763692f 100644 --- a/clang/lib/AST/ByteCode/InterpBuiltin.cpp +++ b/clang/lib/AST/ByteCode/InterpBuiltin.cpp @@ -768,6 +768,7 @@ static bool interp__builtin_addressof(InterpState &S, CodePtr OpPC, S.getContext().classify(Call->getArg(0)).value_or(PT_Ptr); assert(PtrT == PT_Ptr && "Unsupported pointer type passed to __builtin_addressof()"); + (void)PtrT; return true; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits