PR mudflap/26789
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Mar 2006 21:42:34 +0000 (21:42 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Mar 2006 21:42:34 +0000 (21:42 +0000)
* tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112296 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-mudflap.c

index fe517ce..0d8b00d 100644 (file)
@@ -1,5 +1,10 @@
 2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
+       PR mudflap/26789
+       * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
+
+2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
        PR driver/22600
        * system.h (ICE_EXIT_CODE): New macro.
        * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
index 5a1444d..f1009ba 100644 (file)
@@ -728,6 +728,10 @@ mf_xform_derefs_1 (block_stmt_iterator *iter, tree *tp,
 
   t = *tp;
   type = TREE_TYPE (t);
+
+  if (type == error_mark_node)
+    return;
+
   size = TYPE_SIZE_UNIT (type);
 
   switch (TREE_CODE (t))