]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/tree-affine.c
Merge with trunk.
[thirdparty/gcc.git] / gcc / tree-affine.c
index 239b780992561c4d069ce7d61f5c13ecc079a728..07a5d2eda62a2eba8e9a61de2da08561226ea5b1 100644 (file)
@@ -870,10 +870,11 @@ debug_aff (aff_tree *val)
   fprintf (stderr, "\n");
 }
 
-/* Returns address of the reference REF in ADDR.  The size of the accessed
-   location is stored to SIZE.  */
+/* Computes address of the reference REF in ADDR.  The size of the accessed
+   location is stored to SIZE.  Returns the ultimate containing object to
+   which REF refers.  */
 
-void
+tree
 get_inner_reference_aff (tree ref, aff_tree *addr, widest_int *size)
 {
   HOST_WIDE_INT bitsize, bitpos;
@@ -899,6 +900,8 @@ get_inner_reference_aff (tree ref, aff_tree *addr, widest_int *size)
   aff_combination_add (addr, &tmp);
 
   *size = (bitsize + BITS_PER_UNIT - 1) / BITS_PER_UNIT;
+
+  return base;
 }
 
 /* Returns true if a region of size SIZE1 at position 0 and a region of