diff options
Diffstat (limited to 'gcc/passes.c')
-rw-r--r-- | gcc/passes.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/passes.c b/gcc/passes.c index b8ed3e6..2d05171 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -1074,11 +1074,7 @@ execute_one_pass (struct opt_pass *pass) if (pass->type == SIMPLE_IPA_PASS) gcc_assert (!cfun && !current_function_decl); else - { - gcc_assert (cfun && current_function_decl); - gcc_assert (!(cfun->curr_properties & PROP_trees) - || pass->type != RTL_PASS); - } + gcc_assert (cfun && current_function_decl); current_pass = pass; /* See if we're supposed to run this pass. */ @@ -1174,6 +1170,10 @@ execute_one_pass (struct opt_pass *pass) dump_file = NULL; } + if (pass->type != SIMPLE_IPA_PASS) + gcc_assert (!(cfun->curr_properties & PROP_trees) + || pass->type != RTL_PASS); + current_pass = NULL; /* Reset in_gimple_form to not break non-unit-at-a-time mode. */ in_gimple_form = false; |