Commit 3eb63272 by Richard Biener Committed by Richard Biener

re PR tree-optimization/86850 (ubsan: runtime error: member call on null pointer)

2018-11-06  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/86850
	* vec.h (vec<T, va_heap, vl_ptr>::splice): Check src.length ()
	instead of src.m_vec.

From-SVN: r265848
parent 1b62186c
2018-11-06 Richard Biener <rguenther@suse.de>
PR tree-optimization/86850
* vec.h (vec<T, va_heap, vl_ptr>::splice): Check src.length ()
instead of src.m_vec.
2018-11-06 Jan Hubicka <jh@suse.cz>
* tree.c (fld_simplified_type_name): Break out form ...
......@@ -1688,7 +1688,7 @@ template<typename T>
inline void
vec<T, va_heap, vl_ptr>::splice (const vec<T, va_heap, vl_ptr> &src)
{
if (src.m_vec)
if (src.length ())
m_vec->splice (*(src.m_vec));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment