From 56f6033d2bc75b90a1006b5245a8da338224506d Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Fri, 9 Jan 2015 09:19:44 +0000 Subject: [PATCH] Fix gcc_assert in expand_omp_for_static_chunk 2015-01-09 Tom de Vries * omp-low.c (expand_omp_for_static_chunk): Fix assert. From-SVN: r219376 --- gcc/ChangeLog | 4 ++++ gcc/omp-low.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e1db810abf8..d3d121ddff4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-01-09 Tom de Vries + + * omp-low.c (expand_omp_for_static_chunk): Fix assert. + 2015-01-09 Kito Cheng PR rtl-optimization/64348 diff --git a/gcc/omp-low.c b/gcc/omp-low.c index d8ef88e5439..ed7e6627a42 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -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) { -- 2.30.2