aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-unswitch.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-ssa-loop-unswitch.c')
-rw-r--r--gcc/tree-ssa-loop-unswitch.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index e755b62..90bb205 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -411,12 +411,6 @@ tree_ssa_loop_unswitch (void)
return tree_ssa_unswitch_loops ();
}
-static bool
-gate_tree_ssa_loop_unswitch (void)
-{
- return flag_unswitch_loops != 0;
-}
-
namespace {
const pass_data pass_data_tree_unswitch =
@@ -441,7 +435,7 @@ public:
{}
/* opt_pass methods: */
- bool gate () { return gate_tree_ssa_loop_unswitch (); }
+ virtual bool gate (function *) { return flag_unswitch_loops != 0; }
unsigned int execute () { return tree_ssa_loop_unswitch (); }
}; // class pass_tree_unswitch