diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-07 22:10:37 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-07 22:10:37 +0000 |
commit | 7d1895d3434f725cd4b0b85dca7e14c368d42bed (patch) | |
tree | af1cbd44fba3851b025f8df7b0c4bfa9e67fc748 /gcc/c-semantics.c | |
parent | f971853078551543075b7bc4d3f62ee2767b2793 (diff) | |
download | gcc-7d1895d3434f725cd4b0b85dca7e14c368d42bed.tar.gz |
PR c++/12519
* c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
it isn't a decl.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72206 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r-- | gcc/c-semantics.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index a9825c87e68..a3e1b45343c 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -758,7 +758,8 @@ void genrtl_cleanup_stmt (tree t) { tree decl = CLEANUP_DECL (t); - if (!decl || (DECL_SIZE (decl) && TREE_TYPE (decl) != error_mark_node)) + if (!decl || !DECL_P (decl) + || (DECL_SIZE (decl) && TREE_TYPE (decl) != error_mark_node)) expand_decl_cleanup_eh (decl, CLEANUP_EXPR (t), CLEANUP_EH_ONLY (t)); } |