[cfe-commits] r95232 - /cfe/trunk/lib/CodeGen/CGExprAgg.cpp

Anders Carlsson andersca at mac.com
Wed Feb 3 10:54:13 PST 2010


Author: andersca
Date: Wed Feb  3 12:54:13 2010
New Revision: 95232

URL: http://llvm.org/viewvc/llvm-project?rev=95232&view=rev
Log:
Add a band-aid fix for clang self-hosting. A better fix will follow shortly.

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=95232&r1=95231&r2=95232&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprAgg.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprAgg.cpp Wed Feb  3 12:54:13 2010
@@ -514,6 +514,9 @@
 
 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)) {





More information about the cfe-commits mailing list