[COMMITTED] tree-optimization/103467 - Don't reuse reference after potential resize.

Andrew MacLeod amacleod@redhat.com
Tue Nov 30 01:06:01 GMT 2021

After making sure the vector is large enough, we use a reference to the 
object through the rest of the function.  One path however requests the 
def chain for a dependant ssa-name, and if that request caused a resize, 
then our reference is no longer valid. On this path, simply use the 
object directly.

Bootstrapped on x86_64-pc-linux-gnu with no regressions.  Pushed as obvious.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 467.patch
Type: text/x-patch
Size: 1362 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211129/a5c95d62/attachment.bin>

More information about the Gcc-patches mailing list