This fixes the bad assumption that sizeof (bool) == 1
2020-11-03 Richard Biener <rguenther@suse.de>
PR bootstrap/97666
* tree-vect-slp.c (vect_build_slp_tree_2): Scale
allocation of skip_args by sizeof (bool).
/* If the SLP node is a PHI (induction or reduction), terminate
the recursion. */
- bool *skip_args = XALLOCAVEC (bool, nops);
+ bool *skip_args = XALLOCAVEC (bool, sizeof (bool) * nops);
memset (skip_args, 0, nops);
if (loop_vec_info loop_vinfo = dyn_cast <loop_vec_info> (vinfo))
if (gphi *stmt = dyn_cast <gphi *> (stmt_info->stmt))