From 669c75be3c07f9cd85c24de5fb952fed6e35464b Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 7 Jan 2017 11:47:36 +0100 Subject: [PATCH] isl_test.c: test_construction: use return value of isl_constraint_set_constant This was missing from e2a2317 (reimplement isl_constraint in terms of isl_aff, Fri Jul 1 17:20:52 2011 +0200). Even though isl_constraint_set_constant may theoretically return a different pointer, it will not do so in practice in this case because there are no other references to the input constraint. Signed-off-by: Sven Verdoolaege --- isl_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isl_test.c b/isl_test.c index 1ebfef35..f78a1f7e 100644 --- a/isl_test.c +++ b/isl_test.c @@ -352,7 +352,7 @@ static int test_construction(isl_ctx *ctx) isl_int_set_si(v, 1); isl_constraint_set_coefficient(c, isl_dim_set, 0, v); isl_int_set_si(v, -5); - isl_constraint_set_constant(c, v); + c = isl_constraint_set_constant(c, v); bset = isl_basic_set_add_constraint(bset, c); isl_local_space_free(ls); -- 2.11.4.GIT