From 8a556ce5120045a5771f685a47c8530b2e72fc90 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 22 Sep 2011 15:15:51 +0000 Subject: 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 --- clang/lib/CodeGen/CGClass.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/lib/CodeGen/CGClass.cpp') 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()); -- cgit v1.2.3