]> granicus.if.org Git - clang/commitdiff
Fix the clang -Werror build after r217152 by flagging a polymorphically used but...
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 4 Sep 2014 16:01:24 +0000 (16:01 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 4 Sep 2014 16:01:24 +0000 (16:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217167 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/ASTMatchers/Dynamic/VariantValue.h

index cf805c685f76cf87c7aa4be31f79c140d99f5575..d06b77cc04db0a45623b5edd043c8997e102a6a4 100644 (file)
@@ -110,6 +110,9 @@ class VariantMatcher {
         ast_matchers::internal::VariadicOperatorFunction Func,
         ArrayRef<VariantMatcher> InnerMatchers) const;
 
+  protected:
+    ~MatcherOps() {}
+
   private:
     ast_type_traits::ASTNodeKind NodeKind;
   };
@@ -218,7 +221,7 @@ private:
 };
 
 template <typename T>
-struct VariantMatcher::TypedMatcherOps : VariantMatcher::MatcherOps {
+struct VariantMatcher::TypedMatcherOps final : VariantMatcher::MatcherOps {
   TypedMatcherOps()
       : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {}
   typedef ast_matchers::internal::Matcher<T> MatcherT;