Avoid an unused variable warning when assertions are

disabled.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81122 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2009-09-06 16:27:34 +00:00
parent 05866f7963
commit 875f4ae789

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.