diff options
author | Jakub Jelinek <jakub@redhat.com> | 2022-03-28 09:51:28 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2022-03-28 09:51:28 +0200 |
commit | 50f9148f7a8daf1fa1608cb23595c3cca191da0f (patch) | |
tree | 4c4d61d1444d14427b995d531e527acb71dd880a | |
parent | f6819b7fea38f2e5482c71aabab3d44a8bd7d904 (diff) | |
download | gcc-50f9148f7a8daf1fa1608cb23595c3cca191da0f.zip gcc-50f9148f7a8daf1fa1608cb23595c3cca191da0f.tar.gz gcc-50f9148f7a8daf1fa1608cb23595c3cca191da0f.tar.bz2 |
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 <jakub@redhat.com>
PR tree-optimization/105056
* tree-predcom.cc (component::component): Initialize also comp_step.
-rw-r--r-- | gcc/tree-predcom.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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<dref> refs; |