]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/ipa-ref-inline.h
backport: As described in http://gcc.gnu.org/ml/gcc/2012-08/msg00015.html...
[thirdparty/gcc.git] / gcc / ipa-ref-inline.h
index 636af145789384364258c7b3e7b6ea320cbb432c..575bba901ac3b2e753769e0d58104b590fd1353e 100644 (file)
@@ -73,7 +73,7 @@ ipa_ref_list_first_reference (struct ipa_ref_list *list)
 {
   if (!VEC_length (ipa_ref_t, list->references))
     return NULL;
-  return VEC_index (ipa_ref_t, list->references, 0);
+  return &VEC_index (ipa_ref_t, list->references, 0);
 }
 
 /* Return first referring ref in LIST or NULL if empty.  */