]> granicus.if.org Git - clang/commitdiff
Make these functions more clearly express the test they are performing. No functional...
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 1 Dec 2012 03:15:03 +0000 (03:15 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 1 Dec 2012 03:15:03 +0000 (03:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169077 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclCXX.h

index afa94989c6cebf0764e336872162b41771ddb44f..0a8e8ff2950aa6363ec0ddf62ab24eb313b4a14b 100644 (file)
@@ -1033,7 +1033,7 @@ public:
   /// other than the copy or move constructors.
   bool hasConstexprNonCopyMoveConstructor() const {
     return data().HasConstexprNonCopyMoveConstructor ||
-           (!hasUserDeclaredConstructor() &&
+           (needsImplicitDefaultConstructor() &&
             defaultedDefaultConstructorIsConstexpr());
   }
 
@@ -1047,7 +1047,7 @@ public:
   /// \brief Determine whether this class has a constexpr default constructor.
   bool hasConstexprDefaultConstructor() const {
     return data().HasConstexprDefaultConstructor ||
-           (!data().UserDeclaredConstructor &&
+           (needsImplicitDefaultConstructor() &&
             defaultedDefaultConstructorIsConstexpr());
   }