[ms-inline asm] Update the end loc for ParseIntelMemOperand.
authorChad Rosier <mcrosier@apple.com>
Mon, 15 Oct 2012 17:26:38 +0000 (17:26 +0000)
committerChad Rosier <mcrosier@apple.com>
Mon, 15 Oct 2012 17:26:38 +0000 (17:26 +0000)
llvm-svn: 165947

llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp

index 6fe2e26..683d694 100644 (file)
@@ -752,6 +752,7 @@ X86Operand *X86AsmParser::ParseIntelMemOperand(unsigned SegReg, SMLoc Start) {
 
   const MCExpr *Disp = MCConstantExpr::Create(0, getParser().getContext());
   if (getParser().ParseExpression(Disp, End)) return 0;
+  End = Parser.getTok().getLoc();
   return X86Operand::CreateMem(Disp, Start, End, Size);
 }