2014-12-15 Richard Biener <rguenther@suse.de>
* vec.h (vec::safe_grow): Guard against a grow to zero size.
From-SVN: r218749
+2014-12-15 Richard Biener <rguenther@suse.de>
+
+ * vec.h (vec::safe_grow): Guard against a grow to zero size.
+
2014-12-15 Richard Biener <rguenther@suse.de>
PR middle-end/64295
unsigned oldlen = length ();
gcc_checking_assert (oldlen <= len);
reserve_exact (len - oldlen PASS_MEM_STAT);
- m_vec->quick_grow (len);
+ if (m_vec)
+ m_vec->quick_grow (len);
+ else
+ gcc_checking_assert (len == 0);
}