diff options
author | Kevin Enderby <enderby@apple.com> | 2009-10-12 22:51:49 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2009-10-12 22:51:49 +0000 |
commit | 7bbbc7d65719ff18592a21cb2246e7fa68e213d4 (patch) | |
tree | 28c7a21fd1ac7522a8e68c932e24fd927c686877 /lib/Target | |
parent | 1449b8594c0a82f80d198ddadda5d23795cad922 (diff) | |
download | external_llvm-7bbbc7d65719ff18592a21cb2246e7fa68e213d4.zip external_llvm-7bbbc7d65719ff18592a21cb2246e7fa68e213d4.tar.gz external_llvm-7bbbc7d65719ff18592a21cb2246e7fa68e213d4.tar.bz2 |
Fix two warnings about unused variables that are only used in assert() calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83917 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 1f0ab9b..849c9b6 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -216,8 +216,8 @@ bool ARMAsmParser::ParseRegister(ARMOperand &Op) { // Try to parse a register list. The first token must be a '{' when called // for now. bool ARMAsmParser::ParseRegisterList(ARMOperand &Op) { - const AsmToken &LCurlyTok = getLexer().getTok(); - assert(LCurlyTok.is(AsmToken::LCurly) && "Token is not an Left Curly Brace"); + assert(getLexer().getTok().is(AsmToken::LCurly) && + "Token is not an Left Curly Brace"); getLexer().Lex(); // Eat left curly brace token. const AsmToken &RegTok = getLexer().getTok(); @@ -264,8 +264,8 @@ bool ARMAsmParser::ParseRegisterList(ARMOperand &Op) { // TODO Only preindexing and postindexing addressing are started, unindexed // with option, etc are still to do. bool ARMAsmParser::ParseMemory(ARMOperand &Op) { - const AsmToken &LBracTok = getLexer().getTok(); - assert(LBracTok.is(AsmToken::LBrac) && "Token is not an Left Bracket"); + assert(getLexer().getTok().is(AsmToken::LBrac) && + "Token is not an Left Bracket"); getLexer().Lex(); // Eat left bracket token. const AsmToken &BaseRegTok = getLexer().getTok(); |