Hi!

Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk.

2020-06-24  Jakub Jelinek  <ja...@redhat.com>

        * omp-low.c (lower_omp_for): Fix two pastos.

--- gcc/omp-low.c.jj    2020-06-16 16:30:43.751400100 +0200
+++ gcc/omp-low.c       2020-06-23 14:14:54.972834539 +0200
@@ -10579,7 +10579,7 @@ lower_omp_for (gimple_stmt_iterator *gsi
            TREE_VEC_ELT (*rhs_p, 1)
              = get_formal_tmp_var (TREE_VEC_ELT (*rhs_p, 1), &cnt_list);
          if (!is_gimple_min_invariant (TREE_VEC_ELT (*rhs_p, 2)))
-           TREE_VEC_ELT (*rhs_p, 1)
+           TREE_VEC_ELT (*rhs_p, 2)
              = get_formal_tmp_var (TREE_VEC_ELT (*rhs_p, 2), &cnt_list);
        }
       else if (!is_gimple_min_invariant (*rhs_p))
@@ -10594,7 +10594,7 @@ lower_omp_for (gimple_stmt_iterator *gsi
            TREE_VEC_ELT (*rhs_p, 1)
              = get_formal_tmp_var (TREE_VEC_ELT (*rhs_p, 1), &cnt_list);
          if (!is_gimple_min_invariant (TREE_VEC_ELT (*rhs_p, 2)))
-           TREE_VEC_ELT (*rhs_p, 1)
+           TREE_VEC_ELT (*rhs_p, 2)
              = get_formal_tmp_var (TREE_VEC_ELT (*rhs_p, 2), &cnt_list);
        }
       else if (!is_gimple_min_invariant (*rhs_p))

        Jakub

Reply via email to