diff options
Diffstat (limited to 'clang/unittests/ASTMatchers/ASTMatchersTest.cpp')
| -rw-r--r-- | clang/unittests/ASTMatchers/ASTMatchersTest.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp index 839c447061f..8df0274504e 100644 --- a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp +++ b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp @@ -2250,10 +2250,9 @@ TEST(AstMatcherPMacro, Works) { } AST_POLYMORPHIC_MATCHER_P( - polymorphicHas, internal::Matcher<Decl>, AMatcher) { - TOOLING_COMPILE_ASSERT((llvm::is_same<NodeType, Decl>::value) || - (llvm::is_same<NodeType, Stmt>::value), - assert_node_type_is_accessible); + polymorphicHas, + AST_POLYMORPHIC_SUPPORTED_TYPES_2(Decl, Stmt), + internal::Matcher<Decl>, AMatcher) { return Finder->matchesChildOf( Node, AMatcher, Builder, ASTMatchFinder::TK_IgnoreImplicitCastsAndParentheses, |

