(add_insn_{after,before}): Fix error in last change.

From-SVN: r8233
This commit is contained in:
Richard Kenner 1994-10-07 08:24:36 -04:00
parent f847788b7f
commit fef0509b3d
1 changed files with 8 additions and 2 deletions

View File

@ -2161,7 +2161,10 @@ add_insn_after (insn, after)
/* Scan all pending sequences too. */
for (; stack; stack = stack->next)
if (after == stack->last)
stack->last = insn;
{
stack->last = insn;
break;
}
if (stack == 0)
abort ();
@ -2209,7 +2212,10 @@ add_insn_before (insn, before)
/* Scan all pending sequences too. */
for (; stack; stack = stack->next)
if (before == stack->first)
stack->first = insn;
{
stack->first = insn;
break;
}
if (stack == 0)
abort ();