diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-29 17:54:37 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-29 17:54:37 +0000 |
commit | 0d480872978098dd508595ae2493efdc3a10901a (patch) | |
tree | 60d5be043e15fc750800a6f6e9dc59155211d490 /gcc/stmt.c | |
parent | bd19206eff4488ba3dbc25aca3c4e46f08b25c0f (diff) | |
download | gcc-0d480872978098dd508595ae2493efdc3a10901a.tar.gz |
* stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32806 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c index f807554de15..e4f14cf5444 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -2618,7 +2618,10 @@ expand_exit_loop_if_false (whichloop, cond) int stmt_loop_nest_empty () { - return (loop_stack == NULL); + /* cfun->stmt can be NULL if we are building a call to get the + EH context for a setjmp/longjmp EH target and the current + function was a deferred inline function. */ + return (cfun->stmt != NULL && loop_stack == NULL); } /* Return non-zero if we should preserve sub-expressions as separate |