-/**
- * returns a confirm node starting from n that is allowed to be used in the exception
- * region.
- *
- * @param region the exception region
- * @param n the node
- */
-static ir_node *get_allowed_confirm(unsigned long region, ir_node *n) {
- for (; is_Confirm(n); n = get_Confirm_value(n)) {
- unsigned long reg = get_Confirm_region(n);
-
- if (reg == 0 || reg == region) {
- /* found an allowed Confirm */
- return n;
- }
-
- }
- return NULL;
-} /* get_allowed_confirm */
-