summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-09-22 15:15:51 +0000
committerDouglas Gregor <dgregor@apple.com>2011-09-22 15:15:51 +0000
commit8a556ce5120045a5771f685a47c8530b2e72fc90 (patch)
treee0c5d43ba28d564e149a5277a4df5a38ff5a7181 /clang/lib/CodeGen
parenteb89d36b9dcebe135dab1ee4cfcf51c3701db929 (diff)
downloadbcm5719-llvm-8a556ce5120045a5771f685a47c8530b2e72fc90.tar.gz
bcm5719-llvm-8a556ce5120045a5771f685a47c8530b2e72fc90.zip
Explicitly-defaulted copy/move constructors are not "implicit", but
they still need the logic to cope with array member initialization. Fixes PR10720. llvm-svn: 140302
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGClass.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 615a4daa869..59d5ef78599 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -573,8 +573,7 @@ static void EmitMemberInitializer(CodeGenFunction &CGF,
llvm::Value *ArrayIndexVar = 0;
const ConstantArrayType *Array
= CGF.getContext().getAsConstantArrayType(FieldType);
- if (Array && Constructor->isImplicit() &&
- Constructor->isCopyOrMoveConstructor()) {
+ if (Array && Constructor->isCopyOrMoveConstructor()) {
llvm::Type *SizeTy
= CGF.ConvertType(CGF.getContext().getSizeType());
OpenPOWER on IntegriCloud