aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2008-11-15 06:35:36 +0000
committerAnders Carlsson <andersca@mac.com>2008-11-15 06:35:36 +0000
commit1385f8e826bf9b65a81888888de82cd6b82a7768 (patch)
tree7a71c7d368f17734ba7e97195e5974d0967b835b /lib/CodeGen/CGCall.cpp
parenta09300a9db77743f6c8f13da51e332a07bb31145 (diff)
Fix silly bug spotted by Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59358 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r--lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp
index 62d5f9fc48..037bbb1a2a 100644
--- a/lib/CodeGen/CGCall.cpp
+++ b/lib/CodeGen/CGCall.cpp
@@ -754,7 +754,7 @@ void CodeGenFunction::EmitFunctionEpilog(QualType RetTy,
if (RetTy->isAnyComplexType()) {
// FIXME: Volatile
ComplexPairTy RT = LoadComplexFromAddr(ReturnValue, false);
- StoreComplexToAddr(RT, ReturnValue, false);
+ StoreComplexToAddr(RT, CurFn->arg_begin(), false);
} else
EmitAggregateCopy(CurFn->arg_begin(), ReturnValue, RetTy);
break;