Skip to content

Commit

Permalink
optimizer bug with catch blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Apr 6, 2011
1 parent 27d23cf commit 18c53b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/backend/gdag.c
Expand Up @@ -132,6 +132,12 @@ void builddags()
list_next(b->Bpred) != NULL))
|| b->BC == BCasm
|| b->BC == BC_finally
#if SCPP
|| b->BC == BCcatch
#endif
#if MARS
|| b->BC == BCjcatch
#endif
)
vec_clear(aevec);
if (b->Belem) /* if there is an expression */
Expand Down
2 changes: 1 addition & 1 deletion src/backend/gflow.c
Expand Up @@ -97,7 +97,7 @@ void flowrd()

/* Binrd = union of Boutrds of all predecessors of b */
vec_clear(b->Binrd);
if (b->BC != BCcatch)
if (b->BC != BCcatch && b->BC != BCjcatch)
{
/* Set Binrd to 0 to account for:
* i = 0;
Expand Down

0 comments on commit 18c53b9

Please sign in to comment.