"the one true solution for compatibility with GCC 3.3+"

... or so I hope

llvm-svn: 8454
This commit is contained in:
Chris Lattner 2003-09-10 20:08:00 +00:00
parent 632cccf646
commit ad3f079976
1 changed files with 3 additions and 3 deletions

View File

@ -1133,7 +1133,7 @@ void CWriter::visitCallInst(CallInst &I) {
switch (ID) {
default: assert(0 && "Unknown LLVM intrinsic!");
case LLVMIntrinsic::va_start:
Out << "va_start((va_list)*";
Out << "va_start(*(va_list*)";
writeOperand(I.getOperand(1));
Out << ", ";
// Output the last argument to the enclosing function...
@ -1141,12 +1141,12 @@ void CWriter::visitCallInst(CallInst &I) {
Out << ")";
return;
case LLVMIntrinsic::va_end:
Out << "va_end((va_list)*";
Out << "va_end(*(va_list*)";
writeOperand(I.getOperand(1));
Out << ")";
return;
case LLVMIntrinsic::va_copy:
Out << "va_copy((va_list)*";
Out << "va_copy(*(va_list*)";
writeOperand(I.getOperand(1));
Out << ", (va_list)";
writeOperand(I.getOperand(2));