[cfe-commits] r95375 - /cfe/trunk/lib/CodeGen/CGExprConstant.cpp
Anders Carlsson
andersca at mac.com
Thu Feb 4 23:00:12 PST 2010
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());
More information about the cfe-commits
mailing list