From: Eric Botcazou Date: Tue, 7 Nov 2017 23:58:52 +0000 (+0000) Subject: * gimple-pretty-print.c (dump_profile): Return "" instead of NULL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f47440662e9bdef99847512106a4cc53a0e19cbe;p=gcc.git * gimple-pretty-print.c (dump_profile): Return "" instead of NULL. From-SVN: r254513 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b9e91a2fba..2c7cecb0bb1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-11-07 Eric Botcazou + + * gimple-pretty-print.c (dump_profile): Return "" instead of NULL. + 2017-11-07 Jakub Jelinek PR target/82855 diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c index ba3d6d6898c..55c623e37bb 100644 --- a/gcc/gimple-pretty-print.c +++ b/gcc/gimple-pretty-print.c @@ -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 ());