]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Assert 'offset2' instead of 'offset' in 'gcc/gimplify.c:gimplify_scan_omp_clauses'
authorThomas Schwinge <thomas@codesourcery.com>
Mon, 11 Nov 2019 08:19:23 +0000 (09:19 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Mon, 11 Nov 2019 08:19:23 +0000 (09:19 +0100)
... to fix a long-time typo/copy'n'past-o.

gcc/
* gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
of 'offset'.

Backport from trunk r278038.

From-SVN: r278039

gcc/ChangeLog
gcc/gimplify.c

index 52d867db50a1bff9ce17d554f2c563a141357b48..fc19dae278d49b9b7cb89687ed819ef1eaeb78b5 100644 (file)
@@ -1,5 +1,9 @@
 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
 
+       Backport from trunk:
+       * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
+       of 'offset'.
+
        Backport from trunk:
        * Makefile.in (LANG_CONFIGUREFRAGS): Define.
        (config.status): Use/depend on it.
index 28e13a710215313c46609ab4232c0fcc2876dfad..a0cb6c402bcf732f292987a2066012d17a6cb093 100644 (file)
@@ -8718,8 +8718,8 @@ gimplify_scan_omp_clauses (tree *list_p, gimple_seq *pre_p,
                              break;
                            if (scp)
                              continue;
-                           gcc_assert (offset == NULL_TREE
-                                       || poly_int_tree_p (offset));
+                           gcc_assert (offset2 == NULL_TREE
+                                       || poly_int_tree_p (offset2));
                            tree d1 = OMP_CLAUSE_DECL (*sc);
                            tree d2 = OMP_CLAUSE_DECL (c);
                            while (TREE_CODE (d1) == ARRAY_REF)