Avoid an unused variable warning when assertions are

disabled.

llvm-svn: 81122
This commit is contained in:
Duncan Sands 2009-09-06 16:27:34 +00:00
parent 6d46e7689c
commit 6bd6a72e73
1 changed files with 1 additions and 0 deletions

View File

@ -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.