tree-flow-inline.h (next_readonly_imm_use): Return NULL_USE_OPERAND_P after the end.

* tree-flow-inline.h (next_readonly_imm_use): Return
NULL_USE_OPERAND_P after the end.

From-SVN: r132793
This commit is contained in:
Alexandre Oliva 2008-03-01 03:34:33 +00:00 committed by Alexandre Oliva
parent 2fb5f2af00
commit d2b6be726e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-03-01 Alexandre Oliva <aoliva@redhat.com>
* tree-flow-inline.h (next_readonly_imm_use): Return
NULL_USE_OPERAND_P after the end.
2008-03-01 Richard Guenther <rguenther@suse.de>
PR tree-optimization/35411

View File

@ -512,7 +512,7 @@ next_readonly_imm_use (imm_use_iterator *imm)
imm->imm_use = old->next;
if (end_readonly_imm_use_p (imm))
return old;
return NULL_USE_OPERAND_P;
return imm->imm_use;
}