diff --git a/clang/include/clang/AST/IgnoreExpr.h b/clang/include/clang/AST/IgnoreExpr.h --- a/clang/include/clang/AST/IgnoreExpr.h +++ b/clang/include/clang/AST/IgnoreExpr.h @@ -41,7 +41,7 @@ template const Expr *IgnoreExprNodes(const Expr *E, FnTys &&...Fns) { - return const_cast(IgnoreExprNodes(E, std::forward(Fns)...)); + return IgnoreExprNodes(const_cast(E), std::forward(Fns)...); } inline Expr *IgnoreImplicitCastsSingleStep(Expr *E) {