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
This commit is contained in:
David Malcolm 2015-12-10 15:20:53 +00:00 committed by David Malcolm
parent 4d1b9fe067
commit 4c1ca083ca
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-12-10 David Malcolm <dmalcolm@redhat.com>
* graphite-optimize-isl.c (scop_get_domains): Fix indentation.
2015-12-10 David Malcolm <dmalcolm@redhat.com>
* ifcvt.c (noce_try_inverse_constants): Fix indentation.

View File

@ -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;