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 b503320f..16cdbd6 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -2053,7 +2053,7 @@ gimple_find_values_to_profile (histogram_values *values) default: gcc_unreachable (); } - if (dump_file) + if (dump_file && hist->hvalue.stmt != NULL) { fprintf (dump_file, "Stmt "); print_gimple_stmt (dump_file, hist->hvalue.stmt, 0, TDF_SLIM); |