From 4c1ca083ca75d75ca6d2746a6fd43bfa2d9a7b0a Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 10 Dec 2015 15:20:53 +0000 Subject: [PATCH] Fix -Wmisleading-indentation warning in graphite-optimize-isl.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ../../../src/gcc/graphite-optimize-isl.c: In function ‘isl_union_set* scop_get_domains(scop_p)’: ../../../src/gcc/graphite-optimize-isl.c:362:5: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation] return res; ^~~~~~ In file included from ../../../src/gcc/hash-table.h:236:0, from ../../../src/gcc/coretypes.h:348, from ../../../src/gcc/graphite-optimize-isl.c:28: ../../../src/gcc/vec.h:1343:3: note: ...this ‘for’ clause, but it is not for (I = 0; (V).iterate ((I), &(P)); ++(I)) ^ ../../../src/gcc/graphite-optimize-isl.c:359:3: note: in expansion of macro ‘FOR_EACH_VEC_ELT’ FOR_EACH_VEC_ELT (scop->pbbs, i, pbb) ^~~~~~~~~~~~~~~~ 351 static isl_union_set * 352 scop_get_domains (scop_p scop ATTRIBUTE_UNUSED) 353 { 354 int i; 355 poly_bb_p pbb; 356 isl_space *space = isl_set_get_space (scop->param_context); 357 isl_union_set *res = isl_union_set_empty (space); 358 359 FOR_EACH_VEC_ELT (scop->pbbs, i, pbb) 360 res = isl_union_set_add_set (res, isl_set_copy (pbb->domain)); 361 362 return res; ^ warning is here 363 } gcc/ChangeLog: * graphite-optimize-isl.c (scop_get_domains): Fix indentation. From-SVN: r231522 --- gcc/ChangeLog | 4 ++++ gcc/graphite-optimize-isl.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 86f365f8ac7..24ff895cbc6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-12-10 David Malcolm + + * graphite-optimize-isl.c (scop_get_domains): Fix indentation. + 2015-12-10 David Malcolm * ifcvt.c (noce_try_inverse_constants): Fix indentation. diff --git a/gcc/graphite-optimize-isl.c b/gcc/graphite-optimize-isl.c index 50f2b3c29b8..0ae56565e8d 100644 --- a/gcc/graphite-optimize-isl.c +++ b/gcc/graphite-optimize-isl.c @@ -360,7 +360,7 @@ scop_get_domains (scop_p scop ATTRIBUTE_UNUSED) FOR_EACH_VEC_ELT (scop->pbbs, i, pbb) res = isl_union_set_add_set (res, isl_set_copy (pbb->domain)); - return res; + return res; } static const int CONSTANT_BOUND = 20; -- 2.30.2