tree-eh.c (tree_remove_unreachable_handlers): Compare gimple_code with GIMPLE_RESX, not RESX.

* tree-eh.c (tree_remove_unreachable_handlers): Compare
	gimple_code with GIMPLE_RESX, not RESX.

From-SVN: r145381
This commit is contained in:
Ian Lance Taylor 2009-04-01 00:03:31 +00:00 committed by Ian Lance Taylor
parent c1b61fcad3
commit d3e37a9e81
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-03-31 Ian Lance Taylor <iant@google.com>
* tree-eh.c (tree_remove_unreachable_handlers): Compare
gimple_code with GIMPLE_RESX, not RESX.
2009-03-31 Joseph Myers <joseph@codesourcery.com>
* c-common.c (c_get_ident): New.

View file

@ -2698,7 +2698,7 @@ tree_remove_unreachable_handlers (void)
int region = VEC_index (int, label_to_region, uid);
SET_BIT (reachable, region);
}
if (gimple_code (stmt) == RESX)
if (gimple_code (stmt) == GIMPLE_RESX)
SET_BIT (reachable, gimple_resx_region (stmt));
if ((region = lookup_stmt_eh_region (stmt)) >= 0)
SET_BIT (contains_stmt, region);