From b054e3804ca95255ecbc4521af7d2626367de0cf Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Fri, 5 Feb 2010 07:00:11 +0000 Subject: [PATCH] Fix array initialization test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95375 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprConstant.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 436c41723d..a2073e6673 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -675,7 +675,8 @@ public: 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(Ty->getAs()->getDecl()); -- 2.50.1