summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commit312045115e95773c4664b9192487b7376047aeee (patch)
treed499624ae443af03cc26fa84af0fcb7d8c42024b /clang/lib
parentf414cbc1fdbf41f5582b30aa138349d89a3be982 (diff)
downloadbcm5719-llvm-312045115e95773c4664b9192487b7376047aeee.tar.gz
bcm5719-llvm-312045115e95773c4664b9192487b7376047aeee.zip
Fix silly bug spotted by Daniel Dunbar
llvm-svn: 59358
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 62d5f9fc48a..037bbb1a2a1 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud