[5/77] Small tweak to array_value_type
commit125344e344498b59a9c4a817b79bcafddda7f478
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Aug 2017 11:08:53 +0000 (30 11:08 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Aug 2017 11:08:53 +0000 (30 11:08 +0000)
tree76614e3dc76ef5ed5c36c69e9e65f8e84c1c0404
parent19a4dce4a4278fd5d008c7e706f4793e3e149174
[5/77] Small tweak to array_value_type

Store the type mode in a variable so that a later,
more mechanical patch can change its type.

2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* tree-switch-conversion.c (array_value_type): Only read TYPE_MODE
once.  Use get_narrowest_mode instead of GET_CLASS_NARROWEST_MODE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251456 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-switch-conversion.c