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
This commit is contained in:
Sameera Deshpande 2011-12-02 20:38:22 +05:30 committed by Sameera Deshpande
parent 0add5a9536
commit cbe9d63036
2 changed files with 8 additions and 0 deletions

View 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

View 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);