Commit fef0509b by Richard Kenner

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

From-SVN: r8233
parent f847788b
......@@ -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 ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment