re PR middle-end/89137 (gcc/omp-low.c:7135: possible read of uninit memory ?)
authorJakub Jelinek <jakub@redhat.com>
Thu, 31 Jan 2019 23:05:01 +0000 (00:05 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 31 Jan 2019 23:05:01 +0000 (00:05 +0100)
PR middle-end/89137
* omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
bogus clang warning.

From-SVN: r268434

gcc/ChangeLog
gcc/omp-low.c

index bf8892946f61498a109b32059bff1c3aa32cf49f..fd4a6af7720baad2dcbba9b2c7bfa838297fc6e7 100644 (file)
@@ -1,3 +1,9 @@
+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
index 1043b6b806c697f8973cde021f3e83d0a534f93e..61f2f5e3d25c31e23da544f896bf78bdf5d85312 100644 (file)
@@ -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;