From 56f9c6791179a927be8ac84286c3b3bc67bd3010 Mon Sep 17 00:00:00 2001 From: Cedric Bastoul Date: Fri, 24 Jul 2015 14:15:56 +0200 Subject: [PATCH] Use an isl_basic_set soft copy instead of a hard copy in cloog_constraint_set_copy() The function used to achieve a hard copy, but isl doesn't provide isl_basic_set_dup() anymore and a hard copy doesn't seem necessary anymore (I failed to find a situation where it is required). --- source/isl/constraints.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/isl/constraints.c b/source/isl/constraints.c index 73d72df..b03f5d5 100644 --- a/source/isl/constraints.c +++ b/source/isl/constraints.c @@ -441,14 +441,17 @@ void cloog_constraint_set_normalize(CloogConstraintSet *matrix, int level) /** * cloog_constraint_set_copy function: - * this functions builds and returns a "hard copy" (not a pointer copy) of a - * CloogConstraintSet data structure. + * this functions builds and returns a "soft copy" of a CloogConstraintSet data + * structure. + * + * NOTE: this function used to return a "hard copy" (not a pointer copy) but isl + * doesn't provide isl_basic_set_dup() anymore and a soft copy works as well. */ CloogConstraintSet *cloog_constraint_set_copy(CloogConstraintSet *constraints) { isl_basic_set *bset; bset = cloog_constraints_set_to_isl(constraints); - return cloog_constraint_set_from_isl_basic_set(isl_basic_set_dup(bset)); + return cloog_constraint_set_from_isl_basic_set(isl_basic_set_copy(bset)); } -- 2.11.4.GIT