[llvm-commits] [llvm] r81122 - /llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
Duncan Sands
baldrick at free.fr
Sun Sep 6 09:27:34 PDT 2009
Author: baldrick
Date: Sun Sep 6 11:27:34 2009
New Revision: 81122
URL: http://llvm.org/viewvc/llvm-project?rev=81122&view=rev
Log:
Avoid an unused variable warning when assertions are
disabled.
Modified:
llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
Modified: llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp?rev=81122&r1=81121&r2=81122&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Sun Sep 6 11:27:34 2009
@@ -231,6 +231,7 @@
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.
More information about the llvm-commits
mailing list