]> granicus.if.org Git - clang/commitdiff
[AST] Remove redundant template keywords.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 22 Oct 2015 11:26:35 +0000 (11:26 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 22 Oct 2015 11:26:35 +0000 (11:26 +0000)
GCC complains about them, clang does not.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@251009 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTContext.cpp

index 379289c2bef9d5f5a286e14c17ff51e1bf9e9d71..94e3e7ca29b3f300e58965c6019cedba6cf73b27 100644 (file)
@@ -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