tree-flow-inline.h (next_readonly_imm_use): Return NULL_USE_OPERAND_P after the end.
authorAlexandre Oliva <aoliva@redhat.com>
Sat, 1 Mar 2008 03:34:33 +0000 (03:34 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Sat, 1 Mar 2008 03:34:33 +0000 (03:34 +0000)
* tree-flow-inline.h (next_readonly_imm_use): Return
NULL_USE_OPERAND_P after the end.

From-SVN: r132793

gcc/ChangeLog
gcc/tree-flow-inline.h

index 2944d20b64d7436808b207ef1bb0c37584a94096..e03adcc4af289bc20d4f65b138d3564ccba6598c 100644 (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
index 1afbd1a8fc79a0936ca03122d91ce147de1090f1..79071a90bea77471b1db6fbf2152592d037fb2df 100644 (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;
 }