Author: d0k Date: Thu Oct 22 06:26:35 2015 New Revision: 251009 URL: http://llvm.org/viewvc/llvm-project?rev=251009&view=rev Log: [AST] Remove redundant template keywords.
GCC complains about them, clang does not. Modified: cfe/trunk/lib/AST/ASTContext.cpp Modified: cfe/trunk/lib/AST/ASTContext.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=251009&r1=251008&r2=251009&view=diff ============================================================================== --- cfe/trunk/lib/AST/ASTContext.cpp (original) +++ cfe/trunk/lib/AST/ASTContext.cpp Thu Oct 22 06:26:35 2015 @@ -8674,11 +8674,11 @@ namespace { ast_type_traits::DynTypedNode getSingleDynTypedNodeFromParentMap(ASTContext::ParentMap::mapped_type U) { - if (const auto *D = U.template dyn_cast<const Decl *>()) + if (const auto *D = U.dyn_cast<const Decl *>()) return ast_type_traits::DynTypedNode::create(*D); - if (const auto *S = U.template dyn_cast<const Stmt *>()) + if (const auto *S = U.dyn_cast<const Stmt *>()) return ast_type_traits::DynTypedNode::create(*S); - return *U.template get<ast_type_traits::DynTypedNode *>(); + return *U.get<ast_type_traits::DynTypedNode *>(); } /// \brief A \c RecursiveASTVisitor that builds a map from nodes to their _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits