r251009 - [AST] Remove redundant template keywords.

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 22 04:26:35 PDT 2015


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




More information about the cfe-commits mailing list