aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
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;