diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-22 15:15:51 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-22 15:15:51 +0000 |
commit | b681fb180dd1d1e8659006f1987711dcc92a6241 (patch) | |
tree | f0023d0079040bc1408fb70c2000124fa69ca03d /lib/CodeGen/CGClass.cpp | |
parent | 9df05ea69b16e48f2b1cda56c2c341ce77493f4e (diff) |
Explicitly-defaulted copy/move constructors are not "implicit", but
they still need the logic to cope with array member
initialization. Fixes PR10720.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGClass.cpp')
-rw-r--r-- | lib/CodeGen/CGClass.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp index 615a4daa86..59d5ef7859 100644 --- a/lib/CodeGen/CGClass.cpp +++ b/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()); |