gcc doesn't like an empty colbber list

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31987 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Lenharth 2006-11-28 23:07:32 +00:00
parent a21900d5a4
commit f45148e113
2 changed files with 6 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {