From ad3f079976680b3a49fe66fa3ddc2df1fdf0835e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 10 Sep 2003 20:08:00 +0000 Subject: [PATCH] "the one true solution for compatibility with GCC 3.3+" ... or so I hope llvm-svn: 8454 --- llvm/lib/CWriter/Writer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/CWriter/Writer.cpp b/llvm/lib/CWriter/Writer.cpp index 0a9c8d1d017e..921aa3488d9f 100644 --- a/llvm/lib/CWriter/Writer.cpp +++ b/llvm/lib/CWriter/Writer.cpp @@ -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));