Commit 908ef79b by Arnaud Charlet Committed by Arnaud Charlet

* c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.

From-SVN: r169278
parent 237e9384
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> 2011-01-26 Jakub Jelinek <jakub@redhat.com>
PR pch/47430 PR pch/47430
......
...@@ -2035,6 +2035,7 @@ dump_generic_ada_node (pretty_printer *buffer, tree node, tree type, ...@@ -2035,6 +2035,7 @@ dump_generic_ada_node (pretty_printer *buffer, tree node, tree type,
|| !TYPE_FIELDS (TREE_TYPE (underlying_type)))) || !TYPE_FIELDS (TREE_TYPE (underlying_type))))
/* Pointer to opaque structure. */ /* Pointer to opaque structure. */
|| underlying_type == NULL_TREE
|| (!typ2 || (!typ2
&& !TREE_VISITED (underlying_type) && !TREE_VISITED (underlying_type)
&& !TREE_VISITED (type_name) && !TREE_VISITED (type_name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment