diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-16 21:14:41 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-16 21:14:41 +0000 |
commit | bf152d45961f93d15e2df8d4d24621ff45edffad (patch) | |
tree | 5dc826c7c51df9a3825809aeb6180f0a8a25062d /gcc/cfgcleanup.c | |
parent | 21f8688e4233d9ff79501bec8d29c4052dda6363 (diff) | |
download | gcc-bf152d45961f93d15e2df8d4d24621ff45edffad.tar.gz |
* cfgcleanup.c (label_is_jump_target_p): Correct use of table
returned by tablejump_p.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71443 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r-- | gcc/cfgcleanup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index bfc59ba22a5..32a9e653228 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -661,7 +661,8 @@ label_is_jump_target_p (rtx label, rtx jump_insn) if (tablejump_p (jump_insn, NULL, &tmp)) { - rtvec vec = XVEC (tmp, GET_CODE (tmp) == ADDR_DIFF_VEC); + rtvec vec = XVEC (PATTERN (tmp), + GET_CODE (PATTERN (tmp)) == ADDR_DIFF_VEC); int i, veclen = GET_NUM_ELEM (vec); for (i = 0; i < veclen; ++i) |