Author: Jie Fu Date: 2025-06-05T14:11:30+08:00 New Revision: 627e49e2491ab7750501d84a5804632074c6af54
URL: https://github.com/llvm/llvm-project/commit/627e49e2491ab7750501d84a5804632074c6af54 DIFF: https://github.com/llvm/llvm-project/commit/627e49e2491ab7750501d84a5804632074c6af54.diff LOG: [AST] Fix an unused-function warning (NFC) /llvm-project/clang/lib/AST/ByteCode/InterpBuiltin.cpp:26:13: error: unused function 'isNoopBuiltin' [-Werror,-Wunused-function] static bool isNoopBuiltin(unsigned ID) { ^ 1 error generated. 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 a7c368394bb6e..b678f229d50bb 100644 --- a/clang/lib/AST/ByteCode/InterpBuiltin.cpp +++ b/clang/lib/AST/ByteCode/InterpBuiltin.cpp @@ -23,7 +23,7 @@ namespace clang { namespace interp { -static bool isNoopBuiltin(unsigned ID) { +LLVM_ATTRIBUTE_UNUSED static bool isNoopBuiltin(unsigned ID) { switch (ID) { case Builtin::BIas_const: case Builtin::BIforward: _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits