aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/X86/AsmParser/X86AsmParser.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-03-18 23:31:24 +0000
committerChad Rosier <mcrosier@apple.com>2013-03-18 23:31:24 +0000
commitee29c16890ab0d7e6b96dc99b2c56ce5a62853b7 (patch)
tree3ed83e7659d27af72008984e42376df47924ed30 /lib/Target/X86/AsmParser/X86AsmParser.cpp
parent242cec5be3b3a715de0535d1a074bb4dff94772f (diff)
[ms-inline asm] Avoid emitting a redundant sizing directive, if we've already
parsed one. Test case coming shortly. rdar://13446980 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/AsmParser/X86AsmParser.cpp')
-rw-r--r--lib/Target/X86/AsmParser/X86AsmParser.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp
index 4ed5534a62..1c45973f37 100644
--- a/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -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())