diff options
| author | John McCall <rjmccall@apple.com> | 2010-02-15 01:23:36 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-02-15 01:23:36 +0000 |
| commit | 63efd334081c03a29d351e4aefa00dfaf6966d8a (patch) | |
| tree | 76e4ed101afaa4736d885bc896699bb0d1a17995 /lib/CodeGen/CGExpr.cpp | |
| parent | 1ed482ba6848703ff9507ee2e336f80e62470344 (diff) | |
When emitting an aggregate into a temporary, make sure we set the alignment
on the alloca.
The fact that codegen makes this class of bug so wonderfully easy to make is
embarrassing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96204 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index ad4fd63cbf..830954fd10 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -95,7 +95,7 @@ RValue CodeGenFunction::EmitAnyExprToTemp(const Expr *E, if (hasAggregateLLVMType(E->getType()) && !E->getType()->isAnyComplexType()) - AggLoc = CreateTempAlloca(ConvertTypeForMem(E->getType()), "agg.tmp"); + AggLoc = CreateMemTemp(E->getType(), "agg.tmp"); return EmitAnyExpr(E, AggLoc, IsAggLocVolatile, /*IgnoreResult=*/false, IsInitializer); } |
