diff options
author | Sameera Deshpande <sameera.deshpande@arm.com> | 2011-12-02 15:08:22 +0000 |
---|---|---|
committer | Sameera Deshpande <sameera.deshpande@arm.com> | 2011-12-02 15:08:22 +0000 |
commit | 463735565a922a222cba4fcb86f388bae5d70e2e (patch) | |
tree | 91630892ad08c608756e103f1d3e386938f03e54 /gcc/gimple-pretty-print.c | |
parent | 368ba220fa6166c39492cb32382381b45b49d1cf (diff) |
* gimple-pretty-print.c (dump_gimple_call): Dereference fn only if
non-NULL.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@181920 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-pretty-print.c')
-rw-r--r-- | gcc/gimple-pretty-print.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c index f0e7c50e60e..3b5f670e60e 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); |