]> git.ipfire.org Git - thirdparty/gcc.git/commit
[5/77] Small tweak to array_value_type
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 30 Aug 2017 11:08:53 +0000 (11:08 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 30 Aug 2017 11:08:53 +0000 (11:08 +0000)
commitec35d57225c9cd7f69ab1b25982b90bfc0f878e7
tree76614e3dc76ef5ed5c36c69e9e65f8e84c1c0404
parentc94843d2422bdf77e2f86fad0329838f36773b43
[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.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r251456
gcc/ChangeLog
gcc/tree-switch-conversion.c