r243108 - Visual Studio is more permissive than other compilers; amends r243107 to fix a compile error.

Aaron Ballman aaron at aaronballman.com
Fri Jul 24 05:44:02 PDT 2015


Author: aaronballman
Date: Fri Jul 24 07:44:02 2015
New Revision: 243108

URL: http://llvm.org/viewvc/llvm-project?rev=243108&view=rev
Log:
Visual Studio is more permissive than other compilers; amends r243107 to fix a compile error.

Modified:
    cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h

Modified: cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h?rev=243108&r1=243107&r2=243108&view=diff
==============================================================================
--- cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h (original)
+++ cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h Fri Jul 24 07:44:02 2015
@@ -3165,7 +3165,7 @@ AST_MATCHER(CXXMethodDecl, isVirtual) {
 AST_POLYMORPHIC_MATCHER(isFinal,
                         AST_POLYMORPHIC_SUPPORTED_TYPES(CXXRecordDecl,
                                                         CXXMethodDecl)) {
-  return Node.hasAttr<FinalAttr>();
+  return Node.template hasAttr<FinalAttr>();
 }
 
 /// \brief Matches if the given method declaration is pure.





More information about the cfe-commits mailing list