From: Aaron Ballman Date: Fri, 24 Jul 2015 12:44:02 +0000 (+0000) Subject: Visual Studio is more permissive than other compilers; amends r243107 to fix a compil... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf7fabe1fa8b9f691b2fe3c31c89ba5acd385bc2;p=clang Visual Studio is more permissive than other compilers; amends r243107 to fix a compile error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243108 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/ASTMatchers/ASTMatchers.h b/include/clang/ASTMatchers/ASTMatchers.h index 0cd90d929e..a4aa8c8688 100644 --- a/include/clang/ASTMatchers/ASTMatchers.h +++ b/include/clang/ASTMatchers/ASTMatchers.h @@ -3165,7 +3165,7 @@ AST_MATCHER(CXXMethodDecl, isVirtual) { AST_POLYMORPHIC_MATCHER(isFinal, AST_POLYMORPHIC_SUPPORTED_TYPES(CXXRecordDecl, CXXMethodDecl)) { - return Node.hasAttr(); + return Node.template hasAttr(); } /// \brief Matches if the given method declaration is pure.