diff options
author | Richard Biener <rguenther@suse.de> | 2024-04-08 10:38:49 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2024-04-08 11:37:25 +0200 |
commit | 97d5cd8740384dbce5a83080916388f80d8976dd (patch) | |
tree | c538933a5a1026275ea75e299058c167dda37b41 /contrib/index-prop | |
parent | 7d051f7d45789e1442d26c07bfc5e7fb77433b87 (diff) | |
download | gcc-97d5cd8740384dbce5a83080916388f80d8976dd.zip gcc-97d5cd8740384dbce5a83080916388f80d8976dd.tar.gz gcc-97d5cd8740384dbce5a83080916388f80d8976dd.tar.bz2 |
tree-optimization/114624 - fix use-after-free in SCCP
We're inspecting the replaced PHI node after releasing it.
PR tree-optimization/114624
* tree-scalar-evolution.cc (final_value_replacement_loop):
Get at the PHI arg location before releasing the PHI node.
* gcc.dg/torture/pr114624.c: New testcase.
Diffstat (limited to 'contrib/index-prop')
0 files changed, 0 insertions, 0 deletions