diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2006-03-22 21:42:34 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2006-03-22 21:42:34 +0000 |
commit | 698cf1c8f8672e4fb46365d8506ac9a63e54efc6 (patch) | |
tree | 17707cfb510850f74808d683910537534bb140e5 /gcc/tree-mudflap.c | |
parent | ddaf3b8666fb3cf656b439b36807e4fbd44f9755 (diff) | |
download | gcc-698cf1c8f8672e4fb46365d8506ac9a63e54efc6.zip gcc-698cf1c8f8672e4fb46365d8506ac9a63e54efc6.tar.gz gcc-698cf1c8f8672e4fb46365d8506ac9a63e54efc6.tar.bz2 |
re PR c++/26789 (ICE on incomplete struct with -fmudflap)
PR mudflap/26789
* tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
From-SVN: r112296
Diffstat (limited to 'gcc/tree-mudflap.c')
-rw-r--r-- | gcc/tree-mudflap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c index 5a1444d..f1009ba 100644 --- a/gcc/tree-mudflap.c +++ b/gcc/tree-mudflap.c @@ -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)) |