diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2000-12-30 07:53:35 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2000-12-30 07:53:35 +0000 |
commit | b94544e45f60ef83ff0d3d79b66f17aeab00036d (patch) | |
tree | 00b9da2cc7326550d9da12bbec9b848caf4beee7 /gcc/config/sh | |
parent | d05e34f29616082fb1f9d9587311c5fee4a9c445 (diff) | |
download | gcc-b94544e45f60ef83ff0d3d79b66f17aeab00036d.zip gcc-b94544e45f60ef83ff0d3d79b66f17aeab00036d.tar.gz gcc-b94544e45f60ef83ff0d3d79b66f17aeab00036d.tar.bz2 |
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
Diffstat (limited to 'gcc/config/sh')
-rw-r--r-- | gcc/config/sh/sh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 8f25be8..ee64d78 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -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 |