[polly] r308643 - [PPCG] Compile fix for MSVC.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 20 11:04:54 PDT 2017


Author: meinersbur
Date: Thu Jul 20 11:04:54 2017
New Revision: 308643

URL: http://llvm.org/viewvc/llvm-project?rev=308643&view=rev
Log:
[PPCG] Compile fix for MSVC.

Visual Studio, even the 2017 version, does not support C99 VLAs.

For VLA paramters, the length of the outermost dimension is not
required anyway, so remove it.

Modified:
    polly/trunk/lib/External/ppcg/grouping.c

Modified: polly/trunk/lib/External/ppcg/grouping.c
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/ppcg/grouping.c?rev=308643&r1=308642&r2=308643&view=diff
==============================================================================
--- polly/trunk/lib/External/ppcg/grouping.c (original)
+++ polly/trunk/lib/External/ppcg/grouping.c Thu Jul 20 11:04:54 2017
@@ -92,7 +92,7 @@ struct ppcg_grouping_leaf {
 
 /* Free all memory allocated for "leaves".
  */
-static void ppcg_grouping_leaf_free(int n, struct ppcg_grouping_leaf leaves[n])
+static void ppcg_grouping_leaf_free(int n, struct ppcg_grouping_leaf leaves[])
 {
 	int i;
 
@@ -271,7 +271,7 @@ static isl_stat check_merge(__isl_take i
 
 /* Merge the leaves at position "pos" and "pos + 1" in "leaves".
  */
-static isl_stat merge_pair(int n, struct ppcg_grouping_leaf leaves[n], int pos)
+static isl_stat merge_pair(int n, struct ppcg_grouping_leaf leaves[], int pos)
 {
 	int i;
 
@@ -309,7 +309,7 @@ static isl_stat merge_pair(int n, struct
  *
  * Return the final number of leaves in the sequence, or -1 on error.
  */
-static int merge_leaves(int n, struct ppcg_grouping_leaf leaves[n],
+static int merge_leaves(int n, struct ppcg_grouping_leaf leaves[],
 	__isl_keep isl_union_map *dep)
 {
 	int i;
@@ -473,7 +473,7 @@ static isl_union_pw_multi_aff *group_con
  * of each other (as a set).
  */
 static isl_stat add_groups(struct ppcg_grouping *grouping,
-	int n, struct ppcg_grouping_leaf leaves[n])
+	int n, struct ppcg_grouping_leaf leaves[])
 {
 	int i;
 




More information about the llvm-commits mailing list