Index: tools/clang/plugins/FindBadConstructs.cpp |
diff --git a/tools/clang/plugins/FindBadConstructs.cpp b/tools/clang/plugins/FindBadConstructs.cpp |
index bdc497f64de99a0cad815473c6998195a88c52c0..c8d166e38dbf53a986b24e2e3c1f5562637b8acd 100644 |
--- a/tools/clang/plugins/FindBadConstructs.cpp |
+++ b/tools/clang/plugins/FindBadConstructs.cpp |
@@ -59,7 +59,7 @@ const char kNoteProtectedNonVirtualDtor[] = |
bool TypeHasNonTrivialDtor(const Type* type) { |
if (const CXXRecordDecl* cxx_r = type->getPointeeCXXRecordDecl()) |
- return cxx_r->hasTrivialDestructor(); |
+ return !cxx_r->hasTrivialDestructor(); |
return false; |
} |