re PR c++/26790 (ICE with -fmudflap returning an incomplete struct)

PR mudflap/26790
	* tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.

From-SVN: r112298
This commit is contained in:
Volker Reichelt 2006-03-22 21:45:13 +00:00 committed by Volker Reichelt
parent 698cf1c8f8
commit 7a7526409d
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR mudflap/26790
* tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
PR mudflap/26789
* tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.

View File

@ -1256,6 +1256,9 @@ mudflap_finish_file (void)
{
gcc_assert (DECL_P (obj));
if (TREE_TYPE (obj) == error_mark_node)
continue;
if (mf_marked_p (obj))
continue;