aboutsummaryrefslogtreecommitdiff
path: root/gcc/resource.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/resource.c')
-rw-r--r--gcc/resource.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/resource.c b/gcc/resource.c
index 9de6f38..333c28f 100644
--- a/gcc/resource.c
+++ b/gcc/resource.c
@@ -175,14 +175,12 @@ next_insn_no_annul (rtx insn)
&& NEXT_INSN (PREV_INSN (insn)) != insn)
{
rtx next = NEXT_INSN (insn);
- enum rtx_code code = GET_CODE (next);
- while ((code == INSN || code == JUMP_INSN || code == CALL_INSN)
+ while ((NONJUMP_INSN_P (next) || JUMP_P (next) || CALL_P (next))
&& INSN_FROM_TARGET_P (next))
{
insn = next;
next = NEXT_INSN (insn);
- code = GET_CODE (next);
}
}