summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorAlexis Hunt <alercah@gmail.com>2011-05-12 22:46:25 +0000
committerAlexis Hunt <alercah@gmail.com>2011-05-12 22:46:25 +0000
commitf9172946be0fdb5f1c7596e3729b3f34ec028827 (patch)
treebf3c62f360068e2ec0b4e7b0d39506e56d0b4244 /clang/lib/Sema/SemaExpr.cpp
parent8a88026ae3d26af11b32a4fad05c77b75cf55a62 (diff)
downloadbcm5719-llvm-f9172946be0fdb5f1c7596e3729b3f34ec028827.tar.gz
bcm5719-llvm-f9172946be0fdb5f1c7596e3729b3f34ec028827.zip
Hrm
llvm-svn: 131259
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index e2426952b2d..5a171eca986 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -9866,7 +9866,7 @@ void Sema::MarkDeclarationReferenced(SourceLocation Loc, Decl *D) {
MarkVTableUsed(Loc, Constructor->getParent());
} else if (CXXDestructorDecl *Destructor = dyn_cast<CXXDestructorDecl>(D)) {
- if (Destructor->isImplicit() && !Destructor->isUsed(false))
+ if (Destructor->isDefaulted() && !Destructor->isUsed(false))
DefineImplicitDestructor(Loc, Destructor);
if (Destructor->isVirtual())
MarkVTableUsed(Loc, Destructor->getParent());
OpenPOWER on IntegriCloud