forked from OSchip/llvm-project
Avoid an unused variable warning when assertions are
disabled. llvm-svn: 81122
This commit is contained in:
parent
6d46e7689c
commit
6bd6a72e73
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue