]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
predcom: Fix up component::component [PR105056]
authorJakub Jelinek <jakub@redhat.com>
Mon, 28 Mar 2022 07:51:28 +0000 (09:51 +0200)
committerJakub Jelinek <jakub@redhat.com>
Mon, 28 Mar 2022 07:51:28 +0000 (09:51 +0200)
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  <jakub@redhat.com>

PR tree-optimization/105056
* tree-predcom.cc (component::component): Initialize also comp_step.

gcc/tree-predcom.cc

index e4aea7cdcb47541d7133ff2577e53a6978fdf249..bb3a1cb68fc248bfc34262d97eb6e2fdc3feb2a9 100644 (file)
@@ -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<dref> refs;