]> granicus.if.org Git - clang/commitdiff
Add a band-aid fix for clang self-hosting. A better fix will follow shortly.
authorAnders Carlsson <andersca@mac.com>
Wed, 3 Feb 2010 18:54:13 +0000 (18:54 +0000)
committerAnders Carlsson <andersca@mac.com>
Wed, 3 Feb 2010 18:54:13 +0000 (18:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95232 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExprAgg.cpp

index e95d7c0fcbbde632ee423b0b2f95c407044be79e..667fe6714b409f48e33102c1ca4d4689ac96dac6 100644 (file)
@@ -514,6 +514,9 @@ void AggExprEmitter::VisitImplicitValueInitExpr(ImplicitValueInitExpr *E) {
 
 void 
 AggExprEmitter::EmitInitializationToLValue(Expr* E, LValue LV, QualType T) {
+  // FIXME: Remove this.
+  T = E->getType();
+
   // FIXME: Ignore result?
   // FIXME: Are initializers affected by volatile?
   if (isa<ImplicitValueInitExpr>(E)) {