diff options
author | Anders Carlsson <andersca@mac.com> | 2010-02-05 07:00:11 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-02-05 07:00:11 +0000 |
commit | 893555ce667fe51b88668cec231c5ad80f6962a5 (patch) | |
tree | 57a70811dea53c9512c1baed5f3e0f32c037cc24 /clang/lib/CodeGen/CGExprConstant.cpp | |
parent | ff338dbf9c8465c550a1fb92ee46196a30899bb8 (diff) | |
download | bcm5719-llvm-893555ce667fe51b88668cec231c5ad80f6962a5.tar.gz bcm5719-llvm-893555ce667fe51b88668cec231c5ad80f6962a5.zip |
Fix array initialization test.
llvm-svn: 95375
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprConstant.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp index 436c41723d7..a2073e66738 100644 --- a/clang/lib/CodeGen/CGExprConstant.cpp +++ b/clang/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<CXXRecordDecl>(Ty->getAs<RecordType>()->getDecl()); |