expr_plus.cc: extract_depth: use pet_id_get_array_type instead of pet_id_get_decl
commit93a8fa243b6e6c1aa2c692450352d430aa0906e8
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 3 Mar 2017 08:26:14 +0000 (3 09:26 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 9 Mar 2017 09:27:10 +0000 (9 10:27 +0100)
treea08d5e45628cc73de3ae667fe095b61a7462a966
parente6fc0607eb1218cd2ff676b50b1d0d046a9e9e06
expr_plus.cc: extract_depth: use pet_id_get_array_type instead of pet_id_get_decl

This allows extract_depth to be called on ids that have been created
using pet_id_arg_from_type.
This is required for the next commit.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
expr_plus.cc