mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +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:
parent
05866f7963
commit
875f4ae789
@ -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
Block a user