aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-12-01 03:15:03 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-12-01 03:15:03 +0000
commitb087248e32a993a3441436cffd10a4c9112eda6f (patch)
treefa72a187602c8106e0a0720b4e1bc957237313b9
parente5411b7c9af683dab6b035825b71c284bfec364d (diff)
Make these functions more clearly express the test they are performing. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169077 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/DeclCXX.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/AST/DeclCXX.h b/include/clang/AST/DeclCXX.h
index afa94989c6..0a8e8ff295 100644
--- a/include/clang/AST/DeclCXX.h
+++ b/include/clang/AST/DeclCXX.h
@@ -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());
}