summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authortbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-10 14:32:56 +0000
committertbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-10 14:32:56 +0000
commit971b8267e7286895718a9b4002d8d418db12c251 (patch)
treede4d9c32ee6e8f8b161f291e7003454256588134 /gcc/function.c
parent80cff5d0455bd7da2921d05b6cc3d15d3be1580f (diff)
downloadgcc-971b8267e7286895718a9b4002d8d418db12c251.tar.gz
remove an unneeded as_a<rtx_insn *> ()
gcc/ChangeLog: 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> () call that isn't needed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228675 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/function.c b/gcc/function.c
index d16d6d88818..db5bc1c4754 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -4986,7 +4986,7 @@ stack_protect_epilogue (void)
{
tree guard_decl = targetm.stack_protect_guard ();
rtx_code_label *label = gen_label_rtx ();
- rtx x, y, tmp;
+ rtx x, y;
rtx_insn *seq;
x = expand_normal (crtl->stack_protect_guard);
@@ -5005,9 +5005,9 @@ stack_protect_epilogue (void)
things moved out of line. Since this is the only extant case of adding
a noreturn function at the rtl level, it doesn't seem worth doing ought
except adding the prediction by hand. */
- tmp = get_last_insn ();
+ rtx_insn *tmp = get_last_insn ();
if (JUMP_P (tmp))
- predict_insn_def (as_a <rtx_insn *> (tmp), PRED_NORETURN, TAKEN);
+ predict_insn_def (tmp, PRED_NORETURN, TAKEN);
expand_call (targetm.stack_protect_fail (), NULL_RTX, /*ignore=*/true);
free_temp_slots ();