Fix silly bug spotted by Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59358 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp
index 62d5f9f..037bbb1 100644
--- a/lib/CodeGen/CGCall.cpp
+++ b/lib/CodeGen/CGCall.cpp
@@ -754,7 +754,7 @@
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;