diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2016-11-21 06:15:58 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2016-11-21 06:15:58 +0000 |
commit | a29f6a2be31ce70d96c1d9337a8b79bc19aca76b (patch) | |
tree | 13f5b0027614c4abe6be7e61e2fc84cccf533f38 /gcc/cfgrtl.c | |
parent | 4bd09ee9d3c60db4f91248bc0f0c3d54dce2659a (diff) | |
download | gcc-a29f6a2be31ce70d96c1d9337a8b79bc19aca76b.zip gcc-a29f6a2be31ce70d96c1d9337a8b79bc19aca76b.tar.gz gcc-a29f6a2be31ce70d96c1d9337a8b79bc19aca76b.tar.bz2 |
make delete_insn () take a rtx_insn *
gcc/ChangeLog:
2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
(fixup_reorder_chain): Adjust.
* cfgrtl.h: Adjust prototype.
From-SVN: r242653
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r-- | gcc/cfgrtl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index d2719db..d0aac09 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -123,9 +123,8 @@ can_delete_label_p (const rtx_code_label *label) /* Delete INSN by patching it out. */ void -delete_insn (rtx uncast_insn) +delete_insn (rtx_insn *insn) { - rtx_insn *insn = as_a <rtx_insn *> (uncast_insn); rtx note; bool really_delete = true; @@ -3817,7 +3816,7 @@ fixup_reorder_chain (void) update_br_prob_note (bb); if (LABEL_NUSES (ret_label) == 0 && single_pred_p (e_taken->dest)) - delete_insn (ret_label); + delete_insn (as_a<rtx_insn *> (ret_label)); continue; } } |