aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-loop-interchange.cc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2023-08-03 16:40:07 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:00:31 +0100
commite4515c226d5e97bcc68383426cdafbc054df9ac5 (patch)
tree2c50520ad24a034d6df7e6452de6ae686aa8b5c6 /gcc/gimple-loop-interchange.cc
parent06af44ece16072c7078c1fee283108a12c963ecb (diff)
downloadgcc-e4515c226d5e97bcc68383426cdafbc054df9ac5.zip
gcc-e4515c226d5e97bcc68383426cdafbc054df9ac5.tar.gz
gcc-e4515c226d5e97bcc68383426cdafbc054df9ac5.tar.bz2
gccrs: diagnostics: Fix mismatch between new[] and free
We cannot use `free` on a pointer allocated through `new[]`, and this causes an ASAN failure. This fixes it by using `xcalloc` instead of `new[]` when creating description buffers for our error codes. gcc/rust/ChangeLog: * rust-diagnostics.cc: Switch from new[] to xcalloc
Diffstat (limited to 'gcc/gimple-loop-interchange.cc')
0 files changed, 0 insertions, 0 deletions