diff options
author | Andreas Krebbel <krebbel1@de.ibm.com> | 2005-06-28 14:19:42 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2005-06-28 14:19:42 +0000 |
commit | 16c5f6e109be9db9ae199094b3c18086005a1100 (patch) | |
tree | 39386f2acb6f865fcb0f0b7b01b8586ee5eb605f /gcc/except.c | |
parent | 8234b3bdf8257852544dcc24812532d2ebf00df5 (diff) | |
download | gcc-16c5f6e109be9db9ae199094b3c18086005a1100.zip gcc-16c5f6e109be9db9ae199094b3c18086005a1100.tar.gz gcc-16c5f6e109be9db9ae199094b3c18086005a1100.tar.bz2 |
except.c (current_function_has_exception_handlers): Function description added and if statements merged.
2005-06-28 Andreas Krebbel <krebbel1@de.ibm.com>
* except.c (current_function_has_exception_handlers): Function
description added and if statements merged.
From-SVN: r101380
Diffstat (limited to 'gcc/except.c')
-rw-r--r-- | gcc/except.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/except.c b/gcc/except.c index 03a80f2..3c42910 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -826,6 +826,8 @@ find_exception_handler_labels (void) add_ehl_entry (return_label, NULL); } +/* Returns true if the current function has exception handling regions. */ + bool current_function_has_exception_handlers (void) { @@ -835,9 +837,9 @@ current_function_has_exception_handlers (void) { struct eh_region *region = cfun->eh->region_array[i]; - if (! region || region->region_number != i) - continue; - if (region->type != ERT_THROW) + if (region + && region->region_number == i + && region->type != ERT_THROW) return true; } |