summaryrefslogtreecommitdiff
path: root/gcc/resource.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/resource.c')
-rw-r--r--gcc/resource.c3
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)