[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Wed Jun 22 14:04:56 PDT 2005



Changes in directory llvm/lib/Target/CBackend:

Writer.cpp updated: 1.239 -> 1.240
---
Log message:

If we support structs as va_list, we must pass pointers to them to va_copy
See last commit for LangRef, this implements it on all targets.




---
Diffs of the changes:  (+1 -1)

 Writer.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.239 llvm/lib/Target/CBackend/Writer.cpp:1.240
--- llvm/lib/Target/CBackend/Writer.cpp:1.239	Sat Jun 18 13:34:52 2005
+++ llvm/lib/Target/CBackend/Writer.cpp	Wed Jun 22 16:04:42 2005
@@ -1495,7 +1495,7 @@
         Out << "0; ";
         Out << "va_copy(*(va_list*)";
         writeOperand(I.getOperand(1));
-        Out << ", *(va_list*)&";
+        Out << ", *(va_list*)";
         writeOperand(I.getOperand(2));
         Out << ')';
         return;






More information about the llvm-commits mailing list