[1/2] Add get_next_strinfo helper function
commite4b21f537af55472f818a740ae71cdd7da01b17f
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 May 2017 12:26:03 +0000 (31 12:26 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 May 2017 12:26:03 +0000 (31 12:26 +0000)
treebded8b42d9c1dd7f594f3f10734dd4f18d2ec0c1
parent4eb1d055b646b2a0f3ee2e69e37d971ed64db197
[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.

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