diff options
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 5e8bb742bf4..e6daeac26a8 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -34,6 +34,7 @@ along with GCC; see the file COPYING3. If not see #include "gimplify.h" #include "attribs.h" +extern tree isan_expr (tree expr); static tree bot_manip (tree *, int *, void *); static tree bot_replace (tree *, int *, void *); static hashval_t list_hash_pieces (tree, tree, tree); @@ -4057,6 +4058,16 @@ cp_save_expr (tree expr) return save_expr (expr); } +/* Workaround for isan and save_expr. */ + +tree +cp_isan_expr (tree expr) +{ + if (processing_template_decl) + return expr; + return isan_expr (expr); +} + /* Initialize tree.c. */ void |