Skip to content

Commit 627e49e

Browse files
committed
[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.
1 parent 7ca7bcb commit 627e49e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ByteCode/InterpBuiltin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
namespace clang {
2424
namespace interp {
2525

26-
static bool isNoopBuiltin(unsigned ID) {
26+
LLVM_ATTRIBUTE_UNUSED static bool isNoopBuiltin(unsigned ID) {
2727
switch (ID) {
2828
case Builtin::BIas_const:
2929
case Builtin::BIforward:

0 commit comments

Comments
 (0)