From 6855ba2c95e7dde1402e54c0500300cfefcfafd2 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Thu, 20 May 2010 16:46:55 +0000 Subject: Copy construction of non-trivial properties must not be turned into a setter call (fixes radar 8008649). llvm-svn: 104235 --- clang/lib/CodeGen/CGExprAgg.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/lib/CodeGen/CGExprAgg.cpp') diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp index da2100df940d..3bf2f8a52025 100644 --- a/clang/lib/CodeGen/CGExprAgg.cpp +++ b/clang/lib/CodeGen/CGExprAgg.cpp @@ -761,8 +761,7 @@ void CodeGenFunction::EmitAggregateCopy(llvm::Value *DestPtr, if (const RecordType *RT = Ty->getAs()) { CXXRecordDecl *Record = cast(RT->getDecl()); assert((Record->hasTrivialCopyConstructor() || - Record->hasTrivialCopyAssignment() || - /*FIXME!*/getContext().getLangOptions().ObjC1) && + Record->hasTrivialCopyAssignment()) && "Trying to aggregate-copy a type without a trivial copy " "constructor or assignment operator"); // Ignore empty classes in C++. -- cgit v1.2.3