* gimple-pretty-print.c (dump_profile): Return "" instead of NULL.

From-SVN: r254513
This commit is contained in:
Eric Botcazou 2017-11-07 23:58:52 +00:00 committed by Eric Botcazou
parent 5666f12bba
commit f47440662e
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2017-11-07 Eric Botcazou <ebotcazou@adacore.com>
* gimple-pretty-print.c (dump_profile): Return "" instead of NULL.
2017-11-07 Jakub Jelinek <jakub@redhat.com>
PR target/82855

View file

@ -86,7 +86,7 @@ dump_profile (profile_count &count)
{
char *buf;
if (!count.initialized_p ())
return NULL;
return "";
if (count.ipa_p ())
buf = xasprintf ("[count: %" PRId64 "]",
count.to_gcov_type ());