diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-03-01 20:58:59 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-03-01 20:58:59 +0000 |
commit | 57fad2bf00b5bdbf8129af300933cddf4b966490 (patch) | |
tree | 300723c7090245509a0fc405f917ae89ff088772 /gcc/tree-vect-stmts.c | |
parent | 9a267c7852dd13f3d15ab0f11c32e7ac8d69a13f (diff) | |
download | gcc-57fad2bf00b5bdbf8129af300933cddf4b966490.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196393 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-stmts.c')
-rw-r--r-- | gcc/tree-vect-stmts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index 7ba76cd5f2e..4004402b015 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -2269,7 +2269,7 @@ vect_create_vectorized_promotion_stmts (vec<tree> *vec_oprnds0, vec_tmp.quick_push (new_tmp2); } - vec_oprnds0->truncate (0); + vec_oprnds0->release (); *vec_oprnds0 = vec_tmp; } |