aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-eh.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>2005-04-23 14:26:26 -0700
committerRichard Henderson <rth@gcc.gnu.org>2005-04-23 14:26:26 -0700
commit6084512671ee4909d6428506d46d09ee1a90cbdf (patch)
tree5b16c15cbadd3fa93d8450796ae606b012edaad2 /gcc/tree-eh.c
parent6800ea5c5768b8363a4de8fcbd29479f9813c1e2 (diff)
downloadgcc-6084512671ee4909d6428506d46d09ee1a90cbdf.zip
gcc-6084512671ee4909d6428506d46d09ee1a90cbdf.tar.gz
gcc-6084512671ee4909d6428506d46d09ee1a90cbdf.tar.bz2
Revert accidental commit.
From-SVN: r98632
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r--gcc/tree-eh.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c
index bfac6bc..90f9061 100644
--- a/gcc/tree-eh.c
+++ b/gcc/tree-eh.c
@@ -1920,12 +1920,7 @@ tree_could_throw_p (tree t)
bool
tree_can_throw_internal (tree stmt)
{
- int region_nr;
-
- if (TREE_CODE (stmt) == RESX_EXPR)
- region_nr = TREE_INT_CST_LOW (TREE_OPERAND (stmt, 0));
- else
- region_nr = lookup_stmt_eh_region (stmt);
+ int region_nr = lookup_stmt_eh_region (stmt);
if (region_nr < 0)
return false;
return can_throw_internal_1 (region_nr);
@@ -1936,9 +1931,8 @@ tree_can_throw_external (tree stmt)
{
int region_nr = lookup_stmt_eh_region (stmt);
if (region_nr < 0)
- return tree_could_throw_p (stmt);
- else
- return can_throw_external_1 (region_nr);
+ return false;
+ return can_throw_external_1 (region_nr);
}
bool