summaryrefslogtreecommitdiff
path: root/gcc/regrename.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/regrename.c')
-rw-r--r--gcc/regrename.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/regrename.c b/gcc/regrename.c
index 74112c3ca53..934df394aaa 100644
--- a/gcc/regrename.c
+++ b/gcc/regrename.c
@@ -1567,9 +1567,9 @@ static bool
copyprop_hardreg_forward_1 (basic_block bb, struct value_data *vd)
{
bool changed = false;
- rtx insn;
+ rtx insn, next;
- for (insn = BB_HEAD (bb); ; insn = NEXT_INSN (insn))
+ FOR_BB_INSNS_SAFE (bb, insn, next)
{
int n_ops, i, alt, predicated;
bool is_asm, any_replacements;