On Fri, Mar 1, 2013 at 3:10 PM, Jakub Jelinek <ja...@redhat.com> wrote:
> Hi!
>
> 4.7 did here:
>   VEC_free (tree, heap, *vec_oprnds0);
>   *vec_oprnds0 = vec_tmp;
> so vec_oprnds0->truncate (0) doesn't match that, and leaks memory.
>
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
> trunk?
>
> 2013-03-01  Jakub Jelinek  <ja...@redhat.com>
>
>         PR middle-end/56461
>         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
>         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
>         before overwriting it.

OK.


Diego.

Reply via email to