diff options
author | Alex Coplan <alex.coplan@arm.com> | 2021-04-23 14:09:15 +0100 |
---|---|---|
committer | Alex Coplan <alex.coplan@arm.com> | 2021-04-23 14:09:15 +0100 |
commit | 5d87c2251c441f056e0a44f928ffcb8a8a679b6b (patch) | |
tree | aad4f0b1e2b97d8a155e5db24c37b157c2311a4f /gcc/tree-complex.c | |
parent | 0e1e7b77904f1fe2a6dbfe84bb4fc026584ba480 (diff) | |
download | gcc-5d87c2251c441f056e0a44f928ffcb8a8a679b6b.zip gcc-5d87c2251c441f056e0a44f928ffcb8a8a679b6b.tar.gz gcc-5d87c2251c441f056e0a44f928ffcb8a8a679b6b.tar.bz2 |
early-remat.c: Fix new/delete mismatch [PR100230]
This simple patch fixes a mistmatched operator new/delete in
early-remat.c which triggers ASan errors on (at least) AArch64 when
compiling SVE code.
gcc/ChangeLog:
PR rtl-optimization/100230
* early-remat.c (early_remat::sort_candidates): Use delete[]
instead of delete for array allocated with new[].
Diffstat (limited to 'gcc/tree-complex.c')
0 files changed, 0 insertions, 0 deletions