Skip to content

Commit 4f08fa1

Browse files
committed
[clang] Fix -Wunused-variable in InterpBuiltin.cpp (NFC)
/llvm-project/clang/lib/AST/ByteCode/InterpBuiltin.cpp:262:23: error: unused variable 'AC' [-Werror,-Wunused-variable] const ASTContext &AC = S.getASTContext(); ^ 1 error generated.
1 parent 1db2d57 commit 4f08fa1

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
@@ -259,7 +259,7 @@ static bool interp__builtin_strlen(InterpState &S, CodePtr OpPC,
259259
unsigned ElemSize = StrPtr.getFieldDesc()->getElemSize();
260260

261261
if (ID == Builtin::BI__builtin_wcslen || ID == Builtin::BIwcslen) {
262-
const ASTContext &AC = S.getASTContext();
262+
[[maybe_unused]] const ASTContext &AC = S.getASTContext();
263263
assert(ElemSize == AC.getTypeSizeInChars(AC.getWCharType()).getQuantity());
264264
}
265265

0 commit comments

Comments
 (0)