pointer_plus [0, 0] + const folding
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 16 Oct 2020 19:10:17 +0000 (15:10 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Fri, 16 Oct 2020 19:10:17 +0000 (15:10 -0400)
commit58492575a118fd14c8184823467c815347cde219
treea0d86017b5ec5b4c005df9613be51a5ee5a2d84b
parentaabc96c9195892e669b7728b0e00a7c1a6f3d161
pointer_plus [0, 0] + const folding

Return a constant range if POINTER_PLUS is [0,0] plus a const.

* range-op.cc (pointer_plus_operator::wi_fold): Make pointer_plus
[0, 0] + const return a [const, const] range.
gcc/range-op.cc