[ms-inline asm] Update the end loc for ParseIntelMemOperand.

llvm-svn: 165947
This commit is contained in:
Chad Rosier 2012-10-15 17:26:38 +00:00
parent 0d6f149e62
commit 499d4a1468
1 changed files with 1 additions and 0 deletions

View 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);
}