From: Anders Carlsson Date: Sat, 15 Nov 2008 06:35:36 +0000 (+0000) Subject: Fix silly bug spotted by Daniel Dunbar X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1385f8e826bf9b65a81888888de82cd6b82a7768;p=clang 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 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;