mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
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:
@@ -231,6 +231,7 @@ struct X86Operand {
|
|||||||
|
|
||||||
bool X86ATTAsmParser::ParseRegister(X86Operand &Op) {
|
bool X86ATTAsmParser::ParseRegister(X86Operand &Op) {
|
||||||
const AsmToken &TokPercent = getLexer().getTok();
|
const AsmToken &TokPercent = getLexer().getTok();
|
||||||
|
(void)TokPercent; // Avoid warning when assertions are disabled.
|
||||||
assert(TokPercent.is(AsmToken::Percent) && "Invalid token kind!");
|
assert(TokPercent.is(AsmToken::Percent) && "Invalid token kind!");
|
||||||
getLexer().Lex(); // Eat percent token.
|
getLexer().Lex(); // Eat percent token.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user