Skip to content

Commit fbfa7a1

Browse files
committed
[AST] Remove redundant template keywords.
GCC complains about them, clang does not. llvm-svn: 251009
1 parent 8e4a176 commit fbfa7a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/AST/ASTContext.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8674,11 +8674,11 @@ namespace {
86748674

86758675
ast_type_traits::DynTypedNode
86768676
getSingleDynTypedNodeFromParentMap(ASTContext::ParentMap::mapped_type U) {
8677-
if (const auto *D = U.template dyn_cast<const Decl *>())
8677+
if (const auto *D = U.dyn_cast<const Decl *>())
86788678
return ast_type_traits::DynTypedNode::create(*D);
8679-
if (const auto *S = U.template dyn_cast<const Stmt *>())
8679+
if (const auto *S = U.dyn_cast<const Stmt *>())
86808680
return ast_type_traits::DynTypedNode::create(*S);
8681-
return *U.template get<ast_type_traits::DynTypedNode *>();
8681+
return *U.get<ast_type_traits::DynTypedNode *>();
86828682
}
86838683

86848684
/// \brief A \c RecursiveASTVisitor that builds a map from nodes to their

0 commit comments

Comments
 (0)