diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-11-14 00:50:40 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-11-14 00:50:40 +0000 |
commit | 8c88953ff0cebd861643ab92309aba71d23c306b (patch) | |
tree | 325984252cef025efa030af771233da6a14a977b /lib/AST/Type.cpp | |
parent | b8a8de316dade43fff95d7bfd2cfaa367f53faea (diff) |
Remove another questionable use of hasTrivial*. The relevant thing for this
test was whether the /selected/ operator= was trivial, not whether the class
had any trivial (or any non-trivial) operator=s.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167897 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 580ec50ca1..1bf1c1b4c4 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -2296,25 +2296,3 @@ QualType::DestructionKind QualType::isDestructedTypeImpl(QualType type) { return DK_none; } - -bool QualType::hasTrivialAssignment(ASTContext &Context, bool Copying) const { - switch (getObjCLifetime()) { - case Qualifiers::OCL_None: - break; - - case Qualifiers::OCL_ExplicitNone: - return true; - - case Qualifiers::OCL_Autoreleasing: - case Qualifiers::OCL_Strong: - case Qualifiers::OCL_Weak: - return !Context.getLangOpts().ObjCAutoRefCount; - } - - if (const CXXRecordDecl *Record - = getTypePtr()->getBaseElementTypeUnsafe()->getAsCXXRecordDecl()) - return Copying ? Record->hasTrivialCopyAssignment() : - Record->hasTrivialMoveAssignment(); - - return true; -} |