[llvm-commits] CVS: llvm/lib/CWriter/Writer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Sep 10 15:09:06 PDT 2003
Changes in directory llvm/lib/CWriter:
Writer.cpp updated: 1.122 -> 1.123
---
Log message:
"the one true solution for compatibility with GCC 3.3+"
... or so I hope
---
Diffs of the changes:
Index: llvm/lib/CWriter/Writer.cpp
diff -u llvm/lib/CWriter/Writer.cpp:1.122 llvm/lib/CWriter/Writer.cpp:1.123
--- llvm/lib/CWriter/Writer.cpp:1.122 Mon Sep 8 14:44:20 2003
+++ llvm/lib/CWriter/Writer.cpp Wed Sep 10 15:08:00 2003
@@ -1133,7 +1133,7 @@
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 @@
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));
More information about the llvm-commits
mailing list