summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CBackend/Writer.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2006-11-28 23:07:32 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2006-11-28 23:07:32 +0000
commit904ca9c68875a5e60639e7794963cf29d5a7a90b (patch)
treee08eaf79fcac9638e8a9706719cd2a526fcf16e2 /llvm/lib/Target/CBackend/Writer.cpp
parentbe6ce9d1c75c5bbb4bbd0fa7f3f0c5dedafaeb08 (diff)
downloadbcm5719-llvm-904ca9c68875a5e60639e7794963cf29d5a7a90b.tar.gz
bcm5719-llvm-904ca9c68875a5e60639e7794963cf29d5a7a90b.zip
gcc doesn't like an empty colbber list
llvm-svn: 31987
Diffstat (limited to 'llvm/lib/Target/CBackend/Writer.cpp')
-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