diff options
-rw-r--r-- | lib/Target/X86/AsmParser/X86AsmParser.cpp | 5 |
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()) |