From 1c1b323327163c0724e9f6287371c38621570afa Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 22 Oct 2015 11:26:35 +0000 Subject: [PATCH] [AST] Remove redundant template keywords. 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 379289c2be..94e3e7ca29 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -8674,11 +8674,11 @@ namespace { ast_type_traits::DynTypedNode getSingleDynTypedNodeFromParentMap(ASTContext::ParentMap::mapped_type U) { - if (const auto *D = U.template dyn_cast()) + if (const auto *D = U.dyn_cast()) return ast_type_traits::DynTypedNode::create(*D); - if (const auto *S = U.template dyn_cast()) + if (const auto *S = U.dyn_cast()) return ast_type_traits::DynTypedNode::create(*S); - return *U.template get(); + return *U.get(); } /// \brief A \c RecursiveASTVisitor that builds a map from nodes to their -- 2.40.0