From 11b32384f2c76e47a396c055dbd2704757ac87cd Mon Sep 17 00:00:00 2001
From: Kevin Enderby <enderby@apple.com>
Date: Mon, 12 Oct 2009 22:51:49 +0000
Subject: [PATCH] Fix two warnings about unused variables that are only used in
 assert() calls.

llvm-svn: 83917
---
 llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 1f0ab9b0b05b..849c9b6b24ae 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/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();