Remove unused variables
authorMatt Beaumont-Gay <matthewbg@google.com>
Fri, 1 Apr 2011 00:06:01 +0000 (00:06 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Fri, 1 Apr 2011 00:06:01 +0000 (00:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128692 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmParser/ARMAsmParser.cpp

index dd9fa5820cfe45894b4923bfe8baaf4dfcb7b652..23d612505d3010739f94495ce33c34897e81d966 100644 (file)
@@ -1211,9 +1211,7 @@ tryParseMSRMaskOperand(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
 /// tryParseMemMode2Operand - Try to parse memory addressing mode 2 operand.
 ARMAsmParser::OperandMatchResultTy ARMAsmParser::
 tryParseMemMode2Operand(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
-  SMLoc S = Parser.getTok().getLoc();
-  const AsmToken &Tok = Parser.getTok();
-  assert(Tok.is(AsmToken::LBrac) && "Token is not a \"[\"");
+  assert(Parser.getTok().is(AsmToken::LBrac) && "Token is not a \"[\"");
 
   if (ParseMemory(Operands, ARMII::AddrMode2))
     return MatchOperand_NoMatch;