diff options
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp b/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp index f7535090bd..a02301f4a9 100644 --- a/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp +++ b/lib/StaticAnalyzer/Checkers/DirectIvarAssignment.cpp @@ -33,6 +33,7 @@ namespace { /// Checks for the init, dealloc, and any other functions that might be allowed /// to perform direct instance variable assignment based on their name. struct MethodFilter { + virtual ~MethodFilter() {} virtual bool operator()(ObjCMethodDecl *M) { if (M->getMethodFamily() == OMF_init || M->getMethodFamily() == OMF_dealloc || @@ -203,6 +204,7 @@ void ento::registerDirectIvarAssignment(CheckerManager &mgr) { // with __attribute__((annotate("objc_no_direct_instance_variable_assignmemt"))). namespace { struct InvalidatorMethodFilter : MethodFilter { + virtual ~InvalidatorMethodFilter() {} virtual bool operator()(ObjCMethodDecl *M) { for (specific_attr_iterator<AnnotateAttr> AI = M->specific_attr_begin<AnnotateAttr>(), |