using fold_flags_t = int;
+struct cp_fold_data
+{
+ hash_set<tree> pset;
+ fold_flags_t flags;
+ cp_fold_data (fold_flags_t flags): flags (flags) {}
+};
+
/* Forward declarations. */
static tree cp_genericize_r (tree *, int *, void *);
*expr_p = expand_vec_init_expr (NULL_TREE, *expr_p,
tf_warning_or_error);
- hash_set<tree> pset;
- cp_walk_tree (expr_p, cp_fold_r, &pset, NULL);
+ cp_fold_data data (ff_genericize | ff_mce_false);
+ cp_walk_tree (expr_p, cp_fold_r, &data, NULL);
cp_genericize_tree (expr_p, false);
copy_if_shared (expr_p);
ret = GS_OK;
in fold-const, we need to perform this before transformation to
GIMPLE-form. */
-struct cp_fold_data
-{
- hash_set<tree> pset;
- fold_flags_t flags;
- cp_fold_data (fold_flags_t flags): flags (flags) {}
-};
-
static tree
cp_fold_r (tree *stmt_p, int *walk_subtrees, void *data_)
{