gimple-pretty-print.c (dump_gimple_call): Dereference fn only if non-NULL.
authorSameera Deshpande <sameera.deshpande@arm.com>
Fri, 2 Dec 2011 15:08:22 +0000 (20:38 +0530)
committerSameera Deshpande <sameerad@gcc.gnu.org>
Fri, 2 Dec 2011 15:08:22 +0000 (20:38 +0530)
* gimple-pretty-print.c (dump_gimple_call): Dereference fn only if
  non-NULL.

From-SVN: r181920

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

index 5e55919..7083bde 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-02  Sameera Deshpande  <sameera.deshpande@arm.com>
+
+       * gimple-pretty-print.c (dump_gimple_call): Dereference fn only if
+         non-NULL.
+
 2011-12-02  Martin Jambor  <mjambor@suse.cz>
 
        PR tree-optimization/50622
index f0e7c50..3b5f670 100644 (file)
@@ -698,6 +698,9 @@ dump_gimple_call (pretty_printer *buffer, gimple gs, int spc, int flags)
   if (gimple_call_tail_p (gs))
     pp_string (buffer, " [tail call]");
 
+  if (fn == NULL)
+    return;
+
   /* Dump the arguments of _ITM_beginTransaction sanely.  */
   if (TREE_CODE (fn) == ADDR_EXPR)
     fn = TREE_OPERAND (fn, 0);