(record_label_references): Don't follow a null label reference chain.

From-SVN: r5429
This commit is contained in:
James Van Artsdalen 1993-09-23 06:07:19 +00:00
parent a05afb9511
commit 9f5cad0582
1 changed files with 3 additions and 1 deletions

View File

@ -406,7 +406,9 @@ record_label_references (insn, pat)
/* Don't make a duplicate in the code_label's chain. */
for (ref = LABEL_REFS (label); ref != label; ref = LABEL_NEXTREF (ref))
for (ref = LABEL_REFS (label);
ref && ref != label;
ref = LABEL_NEXTREF (ref))
if (CONTAINING_INSN (ref) == insn)
return;