diff options
Diffstat (limited to 'llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp index 4ed5534a62e..1c45973f371 100644 --- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/llvm/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()) |

