aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 62cfee0..12c5b5b 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -3124,7 +3124,8 @@ mark_block_as_not_eh_region ()
int
is_eh_region ()
{
- return block_stack && block_stack->data.block.exception_region;
+ return (current_function && block_stack
+ && block_stack->data.block.exception_region);
}
/* Given a pointer to a BLOCK node, save a pointer to the most recently