projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3dedc2
)
[ms-inline asm] Adjust the EndLoc to account for the ']'.
author
Chad Rosier
<mcrosier@apple.com>
Fri, 15 Feb 2013 21:58:13 +0000
(21:58 +0000)
committer
Chad Rosier
<mcrosier@apple.com>
Fri, 15 Feb 2013 21:58:13 +0000
(21:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175312
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/AsmParser/X86AsmParser.cpp
b/lib/Target/X86/AsmParser/X86AsmParser.cpp
index dc15a115370a3707048bae085772caa6daf6e900..8c4c447df90a3abde3db518b29a2bd0bd1092e3e 100644
(file)
--- a/
lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/
lib/Target/X86/AsmParser/X86AsmParser.cpp
@@
-911,7
+911,8
@@
X86Operand *X86AsmParser::ParseIntelBracExpression(unsigned SegReg,
if (getLexer().isNot(AsmToken::RBrac))
return ErrorOperand(Parser.getTok().getLoc(), "Expected ']' token!");
- End = Parser.getTok().getEndLoc();
+ // Adjust the EndLoc due to the ']'.
+ End = SMLoc::getFromPointer(Parser.getTok().getEndLoc().getPointer()-1);
Parser.Lex();
return X86Operand::CreateMem(Disp, Start, End, Size);
}