summaryrefslogtreecommitdiff
path: root/lib/Target/CBackend/CBackend.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-06-22 21:04:42 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-06-22 21:04:42 +0000
commit213e557cef3e653e2d3a00b07b137c143128430a (patch)
tree2b864d830fba118c8d2fa07144629603caf85214 /lib/Target/CBackend/CBackend.cpp
parentd0a4c62a031ea9f0e2be2fe1f16af2209602ed94 (diff)
downloadllvm-213e557cef3e653e2d3a00b07b137c143128430a.tar.gz
llvm-213e557cef3e653e2d3a00b07b137c143128430a.tar.bz2
llvm-213e557cef3e653e2d3a00b07b137c143128430a.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22273 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r--lib/Target/CBackend/CBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 65979933db..c30b306483 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -1495,7 +1495,7 @@ void CWriter::visitCallInst(CallInst &I) {
Out << "0; ";
Out << "va_copy(*(va_list*)";
writeOperand(I.getOperand(1));
- Out << ", *(va_list*)&";
+ Out << ", *(va_list*)";
writeOperand(I.getOperand(2));
Out << ')';
return;