Skip to content

Commit

Permalink
middle-end: explicitly initialize vec_stmts [PR113132]
Browse files Browse the repository at this point in the history
when configured with --enable-checking=release we get a false
positive on the use of vec_stmts as the compiler seems unable
to notice it gets initialized through the pass-by-reference.

This explicitly initializes the local.

gcc/ChangeLog:

	PR bootstrap/113132
	* tree-vect-loop.cc (vect_create_epilog_for_reduction): Initialize vec_stmts;
  • Loading branch information
TamarChristinaArm committed Dec 25, 2023
1 parent 1bbb169 commit fd032cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcc/tree-vect-loop.cc
Expand Up @@ -6207,7 +6207,7 @@ vect_create_epilog_for_reduction (loop_vec_info loop_vinfo,
exit_bb = loop_exit->dest;
exit_gsi = gsi_after_labels (exit_bb);
reduc_inputs.create (slp_node ? vec_num : ncopies);
vec <gimple *> vec_stmts;
vec <gimple *> vec_stmts = vNULL;
for (unsigned i = 0; i < vec_num; i++)
{
gimple_seq stmts = NULL;
Expand Down

0 comments on commit fd032cc

Please sign in to comment.