mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +00:00
[ms-inline asm] Avoid emitting a redundant sizing directive, if we've already
parsed one. Test case coming shortly. rdar://13446980 llvm-svn: 177347
This commit is contained in:
parent
38be84dee3
commit
a43a646d71
@ -1052,9 +1052,10 @@ X86Operand *X86AsmParser::ParseIntelMemOperand(unsigned SegReg, SMLoc Start) {
|
||||
unsigned tLength, tSize, tType;
|
||||
SemaCallback->LookupInlineAsmIdentifier(Sym.getName(), NULL, tLength,
|
||||
tSize, tType, IsVarDecl);
|
||||
if (!Size)
|
||||
if (!Size) {
|
||||
Size = tType * 8; // Size is in terms of bits in this context.
|
||||
NeedSizeDir = Size > 0;
|
||||
NeedSizeDir = Size > 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!isParsingInlineAsm())
|
||||
|
Loading…
x
Reference in New Issue
Block a user