diff options
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r-- | gcc/value-prof.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 6c64e3cbe27..993bd514ad4 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -854,8 +854,8 @@ static struct value_prof_hooks tree_value_prof_hooks = { void tree_register_value_prof_hooks (void) { + gcc_assert (current_ir_type () == IR_GIMPLE); value_prof_hooks = &tree_value_prof_hooks; - gcc_assert (ir_type ()); } /* IR-independent entry points. */ |