r186054 - Fix build.

Eli Friedman eli.friedman at gmail.com
Wed Jul 10 19:28:36 PDT 2013


Author: efriedma
Date: Wed Jul 10 21:28:36 2013
New Revision: 186054

URL: http://llvm.org/viewvc/llvm-project?rev=186054&view=rev
Log:
Fix build.

Sorry about that.

Modified:
    cfe/trunk/lib/CodeGen/CGExprAgg.cpp

Modified: cfe/trunk/lib/CodeGen/CGExprAgg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprAgg.cpp?rev=186054&r1=186053&r2=186054&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprAgg.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprAgg.cpp Wed Jul 10 21:28:36 2013
@@ -619,7 +619,7 @@ void AggExprEmitter::VisitCastExpr(CastE
         // 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(CastE
                                           AggValueSlot::IsZeroed);
       }
       
-      CGF.EmitAggExpr(E->getSubExpr(), valueDest.getDest());
+      CGF.EmitAggExpr(E->getSubExpr(), valueDest);
       return;
     }
 





More information about the cfe-commits mailing list