From: Anders Carlsson Date: Wed, 3 Feb 2010 18:54:13 +0000 (+0000) Subject: Add a band-aid fix for clang self-hosting. A better fix will follow shortly. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f01a331918cefe21fcd567e5f40cd00de2beccf;p=clang Add a band-aid fix for clang self-hosting. A better fix will follow shortly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95232 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index e95d7c0fcb..667fe6714b 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -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(E)) {