From: Tobias Burnus Date: Wed, 8 Apr 2020 09:54:29 +0000 (+0200) Subject: HSA: omp-grid.c – access proper clause code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4ed1ff7ecbfbaef0a6dfd116f562192f08c50bb7;p=gcc.git HSA: omp-grid.c – access proper clause code * omp-grid.c (grid_eliminate_combined_simd_part): Use OMP_CLAUSE_CODE to access the omp clause code. --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6f2dcfb766c..07fff87d34d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-04-08 Tobias Burnus + + * omp-grid.c (grid_eliminate_combined_simd_part): Use + OMP_CLAUSE_CODE to access the omp clause code. + 2020-04-07 Jeff Law PR rtl-optimization/92264 diff --git a/gcc/omp-grid.c b/gcc/omp-grid.c index b98e45de6a0..ba635fd3ea2 100644 --- a/gcc/omp-grid.c +++ b/gcc/omp-grid.c @@ -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: {