[llvm] r177347 - [ms-inline asm] Avoid emitting a redundant sizing directive, if we've already
Chad Rosier
mcrosier at apple.com
Mon Mar 18 16:31:24 PDT 2013
Author: mcrosier
Date: Mon Mar 18 18:31:24 2013
New Revision: 177347
URL: http://llvm.org/viewvc/llvm-project?rev=177347&view=rev
Log:
[ms-inline asm] Avoid emitting a redundant sizing directive, if we've already
parsed one. Test case coming shortly.
rdar://13446980
Modified:
llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
Modified: llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp?rev=177347&r1=177346&r2=177347&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Mon Mar 18 18:31:24 2013
@@ -1052,9 +1052,10 @@ X86Operand *X86AsmParser::ParseIntelMemO
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())
More information about the llvm-commits
mailing list