From: David Malcolm Date: Thu, 10 Dec 2015 15:20:53 +0000 (+0000) Subject: Fix -Wmisleading-indentation warning in graphite-optimize-isl.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c1ca083ca75d75ca6d2746a6fd43bfa2d9a7b0a;p=gcc.git Fix -Wmisleading-indentation warning in graphite-optimize-isl.c ../../../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 --- 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;