Author: andersca
Date: Fri Feb  5 01:00:11 2010
New Revision: 95375

URL: http://llvm.org/viewvc/llvm-project?rev=95375&view=rev
Log:
Fix array initialization test.

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

Modified: cfe/trunk/lib/CodeGen/CGExprConstant.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprConstant.cpp?rev=95375&r1=95374&r2=95375&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprConstant.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprConstant.cpp Fri Feb  5 01:00:11 2010
@@ -675,7 +675,8 @@
     if (!E->getConstructor()->isTrivial())
       return 0;
 
-    QualType Ty = E->getType();
+    // FIXME: We should not have to call getBaseElementType here.
+    QualType Ty = CGM.getContext().getBaseElementType(E->getType());
 
     const CXXRecordDecl *RD = 
       cast<CXXRecordDecl>(Ty->getAs<RecordType>()->getDecl());


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to