cfgcleanup.c (label_is_jump_target_p): Correct use of table returned by tablejump_p.

* cfgcleanup.c (label_is_jump_target_p): Correct use of table
	returned by tablejump_p.

From-SVN: r71443
This commit is contained in:
Ian Lance Taylor 2003-09-16 21:14:41 +00:00 committed by Ian Lance Taylor
parent 1e290ba1e6
commit 1dd61cb4d0
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
* cfgcleanup.c (label_is_jump_target_p): Correct use of table
returned by tablejump_p.
2003-09-16 Joel Brobecker <brobecker@gnat.com>
* dwarf2asm.c (dw2_asm_output_nstring): Add comment.

View File

@ -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)