[ms-inline asm] Remove some dead code.
authorChad Rosier <mcrosier@apple.com>
Tue, 16 Apr 2013 17:27:40 +0000 (17:27 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 16 Apr 2013 17:27:40 +0000 (17:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179607 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmParser/X86AsmParser.cpp

index 47a23c3413cc64986ad2c7ac008a09d8f834561e..da8824c2d0060a5ae808e3d5d51a58feddab9251 100644 (file)
@@ -1191,20 +1191,12 @@ X86Operand *X86AsmParser::ParseIntelBracExpression(unsigned SegReg, SMLoc Start,
     return ErrorOperand(BracLoc, "Expected '[' token!");
   Parser.Lex(); // Eat '['
 
-  unsigned TmpReg = 0;
   SMLoc StartInBrac = Tok.getLoc();
   // Parse [ Symbol + ImmDisp ] and [ BaseReg + Scale*IndexReg + ImmDisp ].  We
   // may have already parsed an immediate displacement before the bracketed
   // expression.
   bool Done = false;
   IntelBracExprStateMachine SM(Parser, ImmDisp);
-
-  // If we parsed a register, then the end loc has already been set and
-  // the identifier has already been lexed.  We also need to update the
-  // state.
-  if (TmpReg)
-    SM.onRegister(TmpReg);
-
   while (!Done) {
     bool UpdateLocLex = true;