From: Sameera Deshpande Date: Fri, 2 Dec 2011 15:08:22 +0000 (+0530) Subject: gimple-pretty-print.c (dump_gimple_call): Dereference fn only if non-NULL. X-Git-Tag: upstream/12.2.0~79404 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbe9d63036110cf37844105bcae1f1e84d2762e0;p=platform%2Fupstream%2Fgcc.git gimple-pretty-print.c (dump_gimple_call): Dereference fn only if non-NULL. * gimple-pretty-print.c (dump_gimple_call): Dereference fn only if non-NULL. From-SVN: r181920 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e55919..7083bde 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-12-02 Sameera Deshpande + + * gimple-pretty-print.c (dump_gimple_call): Dereference fn only if + non-NULL. + 2011-12-02 Martin Jambor PR tree-optimization/50622 diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c index f0e7c50..3b5f670 100644 --- a/gcc/gimple-pretty-print.c +++ b/gcc/gimple-pretty-print.c @@ -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);