diff options
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<CXXRecordDecl>(Ty->getAs<RecordType>()->getDecl()); |