diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-05-20 16:46:55 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-05-20 16:46:55 +0000 |
commit | 6855ba2c95e7dde1402e54c0500300cfefcfafd2 (patch) | |
tree | a4e7e1fde0e3f64a7f8f23ecdaa879ba9c383972 /clang/lib/CodeGen/CGExprAgg.cpp | |
parent | 981563d0baaa7108c3a5dc4c66d783bcc3282ab4 (diff) | |
download | bcm5719-llvm-6855ba2c95e7dde1402e54c0500300cfefcfafd2.tar.gz bcm5719-llvm-6855ba2c95e7dde1402e54c0500300cfefcfafd2.zip |
Copy construction of non-trivial properties must not
be turned into a setter call (fixes radar 8008649).
llvm-svn: 104235
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprAgg.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp index da2100df940..3bf2f8a5202 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<RecordType>()) { CXXRecordDecl *Record = cast<CXXRecordDecl>(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++. |