diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7f90b72b83e..a00bff33482 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-12-11 Bin Cheng + + PR tree-optimization/83320 + * gimple-loop-interchange.cc (free_data_refs_with_aux): Use delete. + (prune_datarefs_not_in_loop): Ditto. + 2017-12-10 Gerald Pfeifer * doc/install.texi (Specific): Tweak link to mkssoftware.com. diff --git a/gcc/gimple-loop-interchange.cc b/gcc/gimple-loop-interchange.cc index 301b511cdad..e80e65c69da 100644 --- a/gcc/gimple-loop-interchange.cc +++ b/gcc/gimple-loop-interchange.cc @@ -945,7 +945,7 @@ free_data_refs_with_aux (vec datarefs) if (dr->aux != NULL) { DR_ACCESS_STRIDE (dr)->release (); - free (dr->aux); + delete (vec *) dr->aux; } free_data_refs (datarefs); @@ -1867,7 +1867,7 @@ prune_datarefs_not_in_loop (struct loop *loop, vec datarefs) if (dr->aux) { DR_ACCESS_STRIDE (dr)->release (); - free (dr->aux); + delete (vec *) dr->aux; } free_data_ref (dr); }