[PATCH] D88319: [AST] Delete broken, unused template.
Yitzhak Mandelbaum via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 25 09:43:10 PDT 2020
ymandel created this revision.
ymandel added a reviewer: gribozavr2.
Herald added a project: clang.
ymandel requested review of this revision.
The `const*` overload of `IgnoreExprNodes` can't compile. Moreover, this didn't
turn up because it's unused. There's no obvious fix, so I've deleted it.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D88319
Files:
clang/include/clang/AST/IgnoreExpr.h
Index: clang/include/clang/AST/IgnoreExpr.h
===================================================================
--- clang/include/clang/AST/IgnoreExpr.h
+++ clang/include/clang/AST/IgnoreExpr.h
@@ -39,11 +39,6 @@
return E;
}
-template <typename... FnTys>
-const Expr *IgnoreExprNodes(const Expr *E, FnTys &&...Fns) {
- return const_cast<Expr *>(IgnoreExprNodes(E, std::forward<FnTys>(Fns)...));
-}
-
inline Expr *IgnoreImplicitCastsSingleStep(Expr *E) {
if (auto *ICE = dyn_cast<ImplicitCastExpr>(E))
return ICE->getSubExpr();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88319.294353.patch
Type: text/x-patch
Size: 543 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200925/dc7c28e7/attachment.bin>
More information about the cfe-commits
mailing list