diff options
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r-- | gcc/tree-eh.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c index 9f641e1..294e309 100644 --- a/gcc/tree-eh.c +++ b/gcc/tree-eh.c @@ -2009,29 +2009,31 @@ bool tree_can_throw_internal (tree stmt) { int region_nr; + bool is_resx = false; if (TREE_CODE (stmt) == RESX_EXPR) - region_nr = TREE_INT_CST_LOW (TREE_OPERAND (stmt, 0)); + region_nr = TREE_INT_CST_LOW (TREE_OPERAND (stmt, 0)), is_resx = true; else region_nr = lookup_stmt_eh_region (stmt); if (region_nr < 0) return false; - return can_throw_internal_1 (region_nr); + return can_throw_internal_1 (region_nr, is_resx); } bool tree_can_throw_external (tree stmt) { int region_nr; + bool is_resx = false; if (TREE_CODE (stmt) == RESX_EXPR) - region_nr = TREE_INT_CST_LOW (TREE_OPERAND (stmt, 0)); + region_nr = TREE_INT_CST_LOW (TREE_OPERAND (stmt, 0)), is_resx = true; else 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 can_throw_external_1 (region_nr, is_resx); } /* Given a statement OLD_STMT and a new statement NEW_STMT that has replaced |