fix setup_call_cleanup and friends.

This commit is contained in:
Vitor Santos Costa
2009-12-03 02:13:22 +00:00
parent 06d30b9fc9
commit d2da5bfe26
3 changed files with 8 additions and 7 deletions

View File

@@ -1439,7 +1439,11 @@ static int is_cleanup_cp(choiceptr cp_b)
#else
pe = cp_b->cp_ap->u.p.p;
#endif /* YAPOR */
return (pe == PredSafeCallCleanup);
/*
it has to be a cleanup and it has to be a completed goal,
otherwise the throw will be caught anyway.
*/
return pe == PredSafeCallCleanup;
}
static Int