From 50f9148f7a8daf1fa1608cb23595c3cca191da0f Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 28 Mar 2022 09:51:28 +0200 Subject: [PATCH] predcom: Fix up component::component [PR105056] The recent change didn't initialize comp_step while previously we used XCNEW to allocate it. I think RS_ANY is better than RS_INTERNAL (== 0) as the default. 2022-03-28 Jakub Jelinek PR tree-optimization/105056 * tree-predcom.cc (component::component): Initialize also comp_step. --- gcc/tree-predcom.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/tree-predcom.cc b/gcc/tree-predcom.cc index e4aea7c..bb3a1cb6 100644 --- a/gcc/tree-predcom.cc +++ b/gcc/tree-predcom.cc @@ -367,7 +367,8 @@ enum ref_step_type struct component { - component (bool es) : eliminate_store_p (es), next (NULL) {} + component (bool es) : comp_step (RS_ANY), eliminate_store_p (es), + next (NULL) {} /* The references in the component. */ auto_vec refs; -- 2.7.4