diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2013-07-11 02:28:36 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2013-07-11 02:28:36 +0000 |
| commit | eb1f276b10c8705e4282442aa61ab9033302b2be (patch) | |
| tree | 39f7e9f8d7fb27d4829e23880f3e066d1c062ed5 /lib/CodeGen/CGExprAgg.cpp | |
| parent | 5154dce6388e3aaa445467030df7a45ed1211abe (diff) | |
| download | clang-eb1f276b10c8705e4282442aa61ab9033302b2be.tar.gz clang-eb1f276b10c8705e4282442aa61ab9033302b2be.tar.bz2 clang-eb1f276b10c8705e4282442aa61ab9033302b2be.tar.xz | |
Fix build.
Sorry about that.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprAgg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index a67f6593f3..902bf1605a 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -619,7 +619,7 @@ void AggExprEmitter::VisitCastExpr(CastExpr *E) { // Zero-initialize. (Strictly speaking, we only need to intialize // the padding at the end, but this is simpler.) if (!Dest.isZeroed()) - CGF.EmitNullInitialization(Dest.getAddr(), type); + CGF.EmitNullInitialization(Dest.getAddr(), atomicType); // Build a GEP to refer to the subobject. llvm::Value *valueAddr = @@ -633,7 +633,7 @@ void AggExprEmitter::VisitCastExpr(CastExpr *E) { AggValueSlot::IsZeroed); } - CGF.EmitAggExpr(E->getSubExpr(), valueDest.getDest()); + CGF.EmitAggExpr(E->getSubExpr(), valueDest); return; } |
