Skip to content
Snippets Groups Projects
Commit 6bd6a72e authored by Duncan Sands's avatar Duncan Sands
Browse files

Avoid an unused variable warning when assertions are

disabled.

llvm-svn: 81122
parent 6d46e768
No related branches found
No related tags found
No related merge requests found
......@@ -231,6 +231,7 @@ struct X86Operand {
bool X86ATTAsmParser::ParseRegister(X86Operand &Op) {
const AsmToken &TokPercent = getLexer().getTok();
(void)TokPercent; // Avoid warning when assertions are disabled.
assert(TokPercent.is(AsmToken::Percent) && "Invalid token kind!");
getLexer().Lex(); // Eat percent token.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment