vec.h (vec<T, [...]): Guard call to memset if len-oldlen != 0.
authorRichard Biener <rguenther@suse.de>
Thu, 1 Dec 2016 18:18:30 +0000 (18:18 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Thu, 1 Dec 2016 18:18:30 +0000 (18:18 +0000)
commit1281fc99115392eb3f19f5e0a5c9b604fc72b27a
treeb529cabd7b70f4f846b3baebc55b5aa08d7b5bef
parent3c7089946936a3e420f0e5db83212f15e0a7027a
vec.h (vec<T, [...]): Guard call to memset if len-oldlen != 0.

2016-12-01  Richard Biener  <rguenther@suse.de>
    Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

* vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
memset if len-oldlen != 0.
(vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.

Co-Authored-By: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
From-SVN: r243125
gcc/ChangeLog
gcc/vec.h