]> git.ipfire.org Git - thirdparty/gcc.git/commit
don't try and free what must be a null vector when reserving 0 elements
authorTrevor Saunders <tsaunders@mozilla.com>
Tue, 5 Nov 2013 13:51:32 +0000 (13:51 +0000)
committerTrevor Saunders <tbsaunde@gcc.gnu.org>
Tue, 5 Nov 2013 13:51:32 +0000 (13:51 +0000)
commitecbffdd88f3f073ded32f1cd632dfb1bfc5d7c38
tree57b2f9ccac9f133f2af4e7f3a1e02c3ad7587f55
parent4f94d87c6171d472fb8f6d2cf0d572d0bd8ebeee
don't try and free what must be a null vector when reserving 0 elements
in va_heap::reserve

2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>

* vec.c (vec_prefix::calculate_allocation): Don't try to handle the
case of no prefix and reserving zero slots, because when that's the
case we'll never get here.
* vec.h (va_heap::reserve): Don't try and handle
vec_prefix::calculate_allocation returning zero because that should
never happen.

From-SVN: r204392
gcc/ChangeLog
gcc/vec.c
gcc/vec.h