diff options
author | Richard Henderson <rth@cygnus.com> | 1999-10-27 00:57:32 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-10-27 00:57:32 -0700 |
commit | 0b8d60fa5dbf87627b1531b54724e00d4d9b2115 (patch) | |
tree | 4942851c740d706d2f23a310e7920ef2a4116f2a /gcc/resource.c | |
parent | 646997096c3bb0d1f9e2f9629acd146ad50442c7 (diff) | |
download | gcc-0b8d60fa5dbf87627b1531b54724e00d4d9b2115.tar.gz |
resource.c (mark_target_live_regs): Check that the target insn wasn't created after compute_bb_for_insn.
* resource.c (mark_target_live_regs): Check that the target
insn wasn't created after compute_bb_for_insn.
From-SVN: r30212
Diffstat (limited to 'gcc/resource.c')
-rw-r--r-- | gcc/resource.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/resource.c b/gcc/resource.c index 9645e4d6aaa..d56552ab1ae 100644 --- a/gcc/resource.c +++ b/gcc/resource.c @@ -831,7 +831,8 @@ mark_target_live_regs (insns, target, res) b = tinfo->block; } - if (b == -1) + if (b == -1 + && INSN_UID (target) < (int) VARRAY_SIZE (basic_block_for_insn)) b = BLOCK_NUM (target); if (target_hash_table != NULL) |