From 4ed1ff7ecbfbaef0a6dfd116f562192f08c50bb7 Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Wed, 8 Apr 2020 11:54:29 +0200 Subject: [PATCH] =?UTF-8?q?HSA:=20omp-grid.c=20=E2=80=93=20access=20proper?= =?UTF-8?q?=20clause=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * omp-grid.c (grid_eliminate_combined_simd_part): Use OMP_CLAUSE_CODE to access the omp clause code. --- gcc/ChangeLog | 5 +++++ gcc/omp-grid.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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: {