* gimple-pretty-print.c (dump_profile): Return "" instead of NULL.
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 7 Nov 2017 23:58:52 +0000 (23:58 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 7 Nov 2017 23:58:52 +0000 (23:58 +0000)
From-SVN: r254513

gcc/ChangeLog
gcc/gimple-pretty-print.c

index 8b9e91a2fbaa0f01e787c805b0cc07353e8235e8..2c7cecb0bb17d6ed01216bc1979f3e020fd62f37 100644 (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
index ba3d6d6898c5aa25fd8acc72a300c05e3e28e1c6..55c623e37bb4ab80d72147454f7ba30240fd1cfa 100644 (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 ());