[ms-inline asm] Don't emit newlines as these are ignored by the AsmParser

anyways.  Also, simplify some conditional logic.

llvm-svn: 161977
This commit is contained in:
Chad Rosier 2012-08-15 19:12:42 +00:00
parent ef2284fbad
commit ecf77b56dd
1 changed files with 1 additions and 4 deletions

View File

@ -2778,11 +2778,8 @@ static void patchMSAsmStrings(Sema &SemaRef, bool &IsSimple,
for (unsigned i = 0, e = AsmToks.size(); i != e; ++i) {
// Emit the previous asm string.
if (i != 0 && AsmToks[i].isAtStartOfLine())
AsmStrings[NumAsmStrings++] = Asm.c_str();
if (i && AsmToks[i].isAtStartOfLine())
Asm += '\n';
AsmStrings[NumAsmStrings++] = Asm.c_str();
// Start a new asm string with the opcode.
if (i == 0 || AsmToks[i].isAtStartOfLine()) {