diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-04-17 00:35:38 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-04-17 00:35:38 +0000 |
commit | 7fea7c81c0970cdb150c1fadb2776dec9fd09780 (patch) | |
tree | d9032bc57f114e76607bdc7e0b0729a61e27601a /lib/CodeGen | |
parent | 0ff258b933fe385425bf2a85429bf46376d338f1 (diff) |
Make sure EmitMoveFromReturnSlot is passing the correct alignment to
EmitFinalDestCopy (and thus pass EmitAggregateCopy the correct alignment).
rdar://11220251
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGExprAgg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index 2103026a84..d345154f01 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -238,7 +238,7 @@ void AggExprEmitter::EmitMoveFromReturnSlot(const Expr *E, RValue Src) { // Otherwise, do a final copy, assert(Dest.getAddr() != Src.getAggregateAddr()); - EmitFinalDestCopy(E, Src, /*Ignore*/ true); + EmitFinalDestCopy(E, Src, /*Ignore*/ true, Dest.getAlignment().getQuantity()); } /// EmitFinalDestCopy - Perform the final copy to DestPtr, if desired. |