diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-21 11:31:14 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-21 11:31:14 +0000 |
commit | 6a021828d43a47da1a4b5ab0d283a29c9923ce4e (patch) | |
tree | 9f10ce02e8346173676a6e80578aba6f988dc7da /gcc/stmt.c | |
parent | a4861f0ee9a8ea2896c40bd5674c123d56e8812a (diff) | |
download | gcc-6a021828d43a47da1a4b5ab0d283a29c9923ce4e.tar.gz |
* stmt.c (any_pending_cleanups): Don't crash when
current_function->stmt is unset.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29541 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c index 1100733374b..6483da5bcc5 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -4334,7 +4334,8 @@ any_pending_cleanups (this_contour) { struct nesting *block; - if (block_stack == 0) + if (current_function == NULL || current_function->stmt == NULL + || block_stack == 0) return 0; if (this_contour && block_stack->data.block.cleanups != NULL) |