[cfe-commits] r161977 - /cfe/trunk/lib/Sema/SemaStmt.cpp
Chad Rosier
mcrosier at apple.com
Wed Aug 15 12:12:42 PDT 2012
Author: mcrosier
Date: Wed Aug 15 14:12:42 2012
New Revision: 161977
URL: http://llvm.org/viewvc/llvm-project?rev=161977&view=rev
Log:
[ms-inline asm] Don't emit newlines as these are ignored by the AsmParser
anyways. Also, simplify some conditional logic.
Modified:
cfe/trunk/lib/Sema/SemaStmt.cpp
Modified: cfe/trunk/lib/Sema/SemaStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmt.cpp?rev=161977&r1=161976&r2=161977&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmt.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmt.cpp Wed Aug 15 14:12:42 2012
@@ -2778,11 +2778,8 @@
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()) {
More information about the cfe-commits
mailing list