[Ada] Fix detection of slices that denote the same object

gcc/ada/

	* sem_util.adb (Denotes_Same_Object): Call Get_Index_Bounds with
	the range of a slice object, not its type.
1 file changed