sh.c (split_branches): Don't dereference re-computed `beyond' before checking it's non-NULL.

* config/sh/sh.c (split_branches): Don't dereference re-computed
`beyond' before checking it's non-NULL.

From-SVN: r38554
This commit is contained in:
Alexandre Oliva 2000-12-30 07:53:35 +00:00 committed by Alexandre Oliva
parent d05e34f296
commit b94544e45f
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-12-30 Alexandre Oliva <aoliva@redhat.com>
* config/sh/sh.c (split_branches): Don't dereference re-computed
`beyond' before checking it's non-NULL.
2000-12-29 Robert Lipe <robertl@sco.com>

View File

@ -3489,8 +3489,8 @@ split_branches (first)
if (beyond
&& (GET_CODE (beyond) == JUMP_INSN
|| (GET_CODE (beyond = next_active_insn (beyond))
== JUMP_INSN))
|| ((beyond = next_active_insn (beyond))
&& GET_CODE (beyond) == JUMP_INSN))
&& GET_CODE (PATTERN (beyond)) == SET
&& recog_memoized (beyond) == CODE_FOR_jump
&& ((INSN_ADDRESSES