mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-02 10:32:56 +00:00
Fix bug: 2002-09-20-VarArgPrototypes.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3870 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
61e4391b57
commit
1f8c4a17c1
@ -683,8 +683,10 @@ void CWriter::printFunctionSignature(const Function *F, bool Prototype) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finish printing arguments...
|
// Finish printing arguments... if this is a vararg function, print the ...,
|
||||||
if (FT->isVarArg()) {
|
// unless there are no known types, in which case, we just emit ().
|
||||||
|
//
|
||||||
|
if (FT->isVarArg() && !FT->getParamTypes().empty()) {
|
||||||
if (FT->getParamTypes().size()) Out << ", ";
|
if (FT->getParamTypes().size()) Out << ", ";
|
||||||
Out << "..."; // Output varargs portion of signature!
|
Out << "..."; // Output varargs portion of signature!
|
||||||
}
|
}
|
||||||
|
@ -683,8 +683,10 @@ void CWriter::printFunctionSignature(const Function *F, bool Prototype) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finish printing arguments...
|
// Finish printing arguments... if this is a vararg function, print the ...,
|
||||||
if (FT->isVarArg()) {
|
// unless there are no known types, in which case, we just emit ().
|
||||||
|
//
|
||||||
|
if (FT->isVarArg() && !FT->getParamTypes().empty()) {
|
||||||
if (FT->getParamTypes().size()) Out << ", ";
|
if (FT->getParamTypes().size()) Out << ", ";
|
||||||
Out << "..."; // Output varargs portion of signature!
|
Out << "..."; // Output varargs portion of signature!
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user