Skip to content

Commit d2ba364

Browse files
committed
Fix an unused-variable warning in release build.
1 parent f136c80 commit d2ba364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/TableGen/TGLexer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ tgtok::TokKind TGLexer::lexPreprocessor(tgtok::TokKind Kind,
814814
if (PrepIncludeStack.back().empty())
815815
return ReturnError(TokStart, "#endif without #ifdef");
816816

817-
auto &IfdefOrElseEntry = PrepIncludeStack.back().back();
817+
[[maybe_unused]] auto &IfdefOrElseEntry = PrepIncludeStack.back().back();
818818

819819
assert((IfdefOrElseEntry.Kind == tgtok::Ifdef ||
820820
IfdefOrElseEntry.Kind == tgtok::Else) &&

0 commit comments

Comments
 (0)