Commit 829a4338 by Jakub Jelinek Committed by Jakub Jelinek

re PR middle-end/89137 (gcc/omp-low.c:7135: possible read of uninit memory ?)

	PR middle-end/89137
	* omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
	bogus clang warning.

From-SVN: r268434
parent 8d169fc1
2019-01-31 Jakub Jelinek <jakub@redhat.com>
PR middle-end/89137
* omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
bogus clang warning.
2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
PR target/89071
......
......@@ -7132,7 +7132,7 @@ lower_omp_task_reductions (omp_context *ctx, enum tree_code code, tree clauses,
lab3 = create_artificial_label (UNKNOWN_LOCATION);
if (code == OMP_FOR)
c = gimple_omp_for_clauses (ctx->stmt);
else if (code == OMP_SECTIONS)
else /* if (code == OMP_SECTIONS) */
c = gimple_omp_sections_clauses (ctx->stmt);
c = OMP_CLAUSE_DECL (omp_find_clause (c, OMP_CLAUSE__REDUCTEMP_));
cancellable = c;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment