diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-05-13 18:48:05 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-05-13 18:48:05 +0000 |
commit | a87b766027322ef8e2fed8843aad5df67a9ecf68 (patch) | |
tree | 0d8427ef53eb001c4a596c9c67b1b4f283e60ae2 /clang/lib/Sema/SemaLookup.cpp | |
parent | be11bdc4b06ad634442016fce4e13a426ef9caa5 (diff) | |
download | bcm5719-llvm-a87b766027322ef8e2fed8843aad5df67a9ecf68.tar.gz bcm5719-llvm-a87b766027322ef8e2fed8843aad5df67a9ecf68.zip |
Use marginally more appropriate functions to detect if we should declare an
implicit copy constructor/assignment, and other minor cleanups. No
functionality change intended.
llvm-svn: 269457
Diffstat (limited to 'clang/lib/Sema/SemaLookup.cpp')
-rw-r--r-- | clang/lib/Sema/SemaLookup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp index 75d9eecf563..647055f5f08 100644 --- a/clang/lib/Sema/SemaLookup.cpp +++ b/clang/lib/Sema/SemaLookup.cpp @@ -738,11 +738,11 @@ void Sema::ForceDeclarationOfImplicitMembers(CXXRecordDecl *Class) { if (getLangOpts().CPlusPlus11) { // If the move constructor has not yet been declared, do so now. if (Class->needsImplicitMoveConstructor()) - DeclareImplicitMoveConstructor(Class); // might not actually do it + DeclareImplicitMoveConstructor(Class); // If the move assignment operator has not yet been declared, do so now. if (Class->needsImplicitMoveAssignment()) - DeclareImplicitMoveAssignment(Class); // might not actually do it + DeclareImplicitMoveAssignment(Class); } // If the destructor has not yet been declared, do so now. |