Fix libstdc++ build

- Add missing operator= definition for DelayedAddObjCClassProperty
- needed to be compatible with libstdc++ vector implementation

llvm-svn: 167747
This commit is contained in:
Daniel Malea 2012-11-12 21:02:14 +00:00
parent 263280248a
commit d4c5be61f2
1 changed files with 6 additions and 1 deletions

View File

@ -1503,6 +1503,11 @@ public:
} }
DelayedAddObjCClassProperty (const DelayedAddObjCClassProperty &rhs) DelayedAddObjCClassProperty (const DelayedAddObjCClassProperty &rhs)
{
*this = rhs;
}
DelayedAddObjCClassProperty& operator= (const DelayedAddObjCClassProperty &rhs)
{ {
m_ast = rhs.m_ast; m_ast = rhs.m_ast;
m_class_opaque_type = rhs.m_class_opaque_type; m_class_opaque_type = rhs.m_class_opaque_type;
@ -1518,7 +1523,7 @@ public:
m_metadata_ap.reset (new ClangASTMetadata()); m_metadata_ap.reset (new ClangASTMetadata());
*(m_metadata_ap.get()) = *(rhs.m_metadata_ap.get()); *(m_metadata_ap.get()) = *(rhs.m_metadata_ap.get());
} }
return *this;
} }
bool Finalize() const bool Finalize() const