aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-02-24 07:48:37 +0000
committerDouglas Gregor <dgregor@apple.com>2012-02-24 07:48:37 +0000
commit5d86f61b9c54429fc3f9149fc0f7009010a644a1 (patch)
tree03689941b69d8c8d8aebd1e53a6c748f3f43e2de /lib/Sema/SemaInit.cpp
parent4ca8ac2e61c37ddadf37024af86f3e1019af8532 (diff)
Kill a spurious use of hasTrivialDefaultConstructor()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r--lib/Sema/SemaInit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp
index 55ab8dda36..756f130b7f 100644
--- a/lib/Sema/SemaInit.cpp
+++ b/lib/Sema/SemaInit.cpp
@@ -4631,8 +4631,7 @@ PerformConstructorInitialization(Sema &S,
CXXRecordDecl *ClassDecl = Constructor->getParent();
assert(ClassDecl && "No parent class for constructor.");
if (Constructor->isDefaulted() && Constructor->isDefaultConstructor() &&
- ClassDecl->hasTrivialDefaultConstructor() &&
- !Constructor->isUsed(false))
+ Constructor->isTrivial() && !Constructor->isUsed(false))
S.DefineImplicitDefaultConstructor(Loc, Constructor);
}