diff options
Diffstat (limited to 'gcc/c-objc-common.c')
-rw-r--r-- | gcc/c-objc-common.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/c-objc-common.c b/gcc/c-objc-common.c index a4bb683ca93..9d05a6d97bf 100644 --- a/gcc/c-objc-common.c +++ b/gcc/c-objc-common.c @@ -213,10 +213,9 @@ c_tree_printer (pretty_printer *pp, text_info *text) break; case 'T': - if (TYPE_P (t)) - name = TYPE_NAME (t); - else - abort (); + gcc_assert (TYPE_P (t)); + name = TYPE_NAME (t); + if (name && TREE_CODE (name) == TYPE_DECL) { if (DECL_NAME (name)) |