From eec9c06d24dabd621190ce6659da7c73512af1e3 Mon Sep 17 00:00:00 2001 From: amodra Date: Sun, 25 May 2008 03:58:15 +0000 Subject: Delete get_inner_array_type. Use strip_array_types instead. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135858 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gcc/tree.c') diff --git a/gcc/tree.c b/gcc/tree.c index 51eba929ff5..38e06938968 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -5682,14 +5682,12 @@ build_array_type (tree elt_type, tree index_type) return t; } -/* Return the TYPE of the elements comprising - the innermost dimension of ARRAY. */ +/* Recursively examines the array elements of TYPE, until a non-array + element type is found. */ tree -get_inner_array_type (const_tree array) +strip_array_types (tree type) { - tree type = TREE_TYPE (array); - while (TREE_CODE (type) == ARRAY_TYPE) type = TREE_TYPE (type); -- cgit v1.2.1