summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/CBackend/Writer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/CBackend/Writer.cpp b/llvm/lib/Target/CBackend/Writer.cpp
index 89ed2ad021a..fa869db6aa3 100644
--- a/llvm/lib/Target/CBackend/Writer.cpp
+++ b/llvm/lib/Target/CBackend/Writer.cpp
@@ -2379,7 +2379,9 @@ void CWriter::visitInlineAsm(CallInst &CI) {
if (I + 1 != E)
Out << ",";
}
- Out << "\n :" << (Clobber.size() ? Clobber.substr(1) : "") << ")\n";
+ if (Clobber.size())
+ Out << "\n :" << Clobber.substr(1);
+ Out << ")";
}
void CWriter::visitMallocInst(MallocInst &I) {
OpenPOWER on IntegriCloud