HSA: omp-grid.c – access proper clause code
authorTobias Burnus <tobias@codesourcery.com>
Wed, 8 Apr 2020 09:54:29 +0000 (11:54 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 8 Apr 2020 09:54:29 +0000 (11:54 +0200)
        * omp-grid.c (grid_eliminate_combined_simd_part): Use
        OMP_CLAUSE_CODE to access the omp clause code.

gcc/ChangeLog
gcc/omp-grid.c

index 6f2dcfb766c219bdca3b4ff5c8cc5edeb3384404..07fff87d34df89fb200718f9365283cb4c890b47 100644 (file)
@@ -1,3 +1,8 @@
+2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
+
+       * omp-grid.c (grid_eliminate_combined_simd_part): Use
+       OMP_CLAUSE_CODE to access the omp clause code.
+
 2020-04-07  Jeff Law  <law@redhat.com>
 
        PR rtl-optimization/92264
index b98e45de6a0e4c2273dce01896173cae2df89137..ba635fd3ea2a33ae1560ef5589aee2463e14c21e 100644 (file)
@@ -1065,7 +1065,7 @@ grid_eliminate_combined_simd_part (gomp_for *parloop)
   while (*pc)
     {
       tree c = *pc;
-      switch (TREE_CODE (c))
+      switch (OMP_CLAUSE_CODE (c))
        {
        case OMP_CLAUSE_LINEAR:
          {