Don't reuse reference after potential resize.
authorAndrew MacLeod <amacleod@redhat.com>
Tue, 30 Nov 2021 00:53:50 +0000 (19:53 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Tue, 30 Nov 2021 01:01:08 +0000 (20:01 -0500)
commitab202b659dbdfd3a1f45ffe7a5052f35b5e8fa6d
treedb705fc38c2a002474fa797b1cb9d7c412c0447d
parent87cd82c81d388530f67dbd73478c00846fb99a64
Don't reuse reference after potential resize.

When a new def chain is requested, any existing reference may no longer
be valid, so just use the object directly.

PR tree-optimization/103467
* gimple-range-gori.cc (range_def_chain::register_dependency): Don't
use an object reference after a potential resize.
gcc/gimple-range-gori.cc