diff options
-rw-r--r-- | gcc/omp-low.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c index da827ef..a86c6c1 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -11067,7 +11067,8 @@ lower_omp_for (gimple_stmt_iterator *gsi_p, omp_context *ctx) push_gimplify_context (); - oacc_privatization_scan_clause_chain (ctx, gimple_omp_for_clauses (stmt)); + if (is_gimple_omp_oacc (ctx->stmt)) + oacc_privatization_scan_clause_chain (ctx, gimple_omp_for_clauses (stmt)); lower_omp (gimple_omp_for_pre_body_ptr (stmt), ctx); |