* c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
From-SVN: r169278
This commit is contained in:
parent
237e9384cf
commit
908ef79b5c
2 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2011-01-26 Arnaud Charlet <charlet@adacore.com>
|
||||
|
||||
* c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
|
||||
|
||||
2011-01-26 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR pch/47430
|
||||
|
|
|
@ -2035,6 +2035,7 @@ dump_generic_ada_node (pretty_printer *buffer, tree node, tree type,
|
|||
|| !TYPE_FIELDS (TREE_TYPE (underlying_type))))
|
||||
/* Pointer to opaque structure. */
|
||||
|
||||
|| underlying_type == NULL_TREE
|
||||
|| (!typ2
|
||||
&& !TREE_VISITED (underlying_type)
|
||||
&& !TREE_VISITED (type_name)
|
||||
|
|
Loading…
Add table
Reference in a new issue