Skip to content

Commit

Permalink
Allow for GOTO handler to become unreachable.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Aug 7, 2017
1 parent 35f8273 commit 39dbe1b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/spesh/dead_bb_elimination.c
Expand Up @@ -54,11 +54,8 @@ static void cleanup_dead_bb_instructions(MVMThreadContext *tc, MVMSpeshGraph *g,
break;
}
case MVM_SPESH_ANN_FH_GOTO:
/* All handlers should be linked from the entry block, so
* we should never find ourselves in the situation of
* deleting the handler go. */
MVM_panic(1,
"Spesh: handler target address should never become unreachable");
mark_handler_unreachable(tc, g, ann->data.frame_handler_index);
break;
}
ann = next_ann;
}
Expand Down

0 comments on commit 39dbe1b

Please sign in to comment.