diff options
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 |