[1/2] Add get_next_strinfo helper function
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 31 May 2017 12:26:03 +0000 (12:26 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 31 May 2017 12:26:03 +0000 (12:26 +0000)
commitbde63fdea41c6c9952ab3607eb497d5c698e85c3
treebded8b42d9c1dd7f594f3f10734dd4f18d2ec0c1
parent89c88990a86d03d9c01fee81ef662d993c35f5e9
[1/2] Add get_next_strinfo helper function

This patch just adds a helper function for getting the next strinfo
in a chain, since part 2 adds another place where we do that.

2017-05-16  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* tree-ssa-strlen.c (get_next_strinfo): New function.
(get_stridx_plus_constant): Use it.
(zero_length_string): Likewise.
(adjust_related_strinfos): Likewise.
(adjust_last_stmt): Likewise.

From-SVN: r248732
gcc/ChangeLog
gcc/tree-ssa-strlen.c