Fix gcc_assert in expand_omp_for_static_chunk
authorTom de Vries <tom@codesourcery.com>
Fri, 9 Jan 2015 09:19:44 +0000 (09:19 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Fri, 9 Jan 2015 09:19:44 +0000 (09:19 +0000)
2015-01-09  Tom de Vries  <tom@codesourcery.com>

* omp-low.c (expand_omp_for_static_chunk): Fix assert.

From-SVN: r219376

gcc/ChangeLog
gcc/omp-low.c

index e1db810abf893338f807e1f09ae31f87f2c74518..d3d121ddff49bd64f373f4179b46932702feb6c9 100644 (file)
@@ -1,3 +1,7 @@
+2015-01-09  Tom de Vries  <tom@codesourcery.com>
+
+       * omp-low.c (expand_omp_for_static_chunk): Fix assert.
+
 2015-01-09  Kito Cheng  <kito@0xlab.org>
 
        PR rtl-optimization/64348
index d8ef88e54390c79d97ec0a8592c3504cb77f6917..ed7e6627a42f0be28c654702c65068d071504723 100644 (file)
@@ -6789,7 +6789,7 @@ expand_omp_for_static_chunk (struct omp_region *region,
          locus = redirect_edge_var_map_location (vm);
          add_phi_arg (nphi, redirect_edge_var_map_def (vm), re, locus);
        }
-      gcc_assert (!gsi_end_p (psi) && i == head->length ());
+      gcc_assert (gsi_end_p (psi) && i == head->length ());
       redirect_edge_var_map_clear (re);
       while (1)
        {