isl_ast_build_expr.c: extract_term_and_mod: use term parameter
commit234431c9b9f58b211913bd4f1c10a05733c28677
authorMichael Kruse <isl@meinersbur.de>
Tue, 6 Sep 2016 21:36:29 +0000 (6 23:36 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 7 Sep 2016 06:40:00 +0000 (7 08:40 +0200)
treef9461efee0abf45b1163a8eea5a1777217079976
parent3355e02dca30f76e279528392f6ddf0fd4859111
isl_ast_build_expr.c: extract_term_and_mod: use term parameter

The parameter 'term' was unused and even violated the __isl_take annotation by
not free'ing the reference. Replace 'data->div' with a use of the parameter.

Since both calls to extract_term_and_mod pass 'data->div' with its reference
counter increased by one as 'term' argument, it just happened to work out and
there is no change in behaviour.

Signed-off-by: Michael Kruse <isl@meinersbur.de>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_ast_build_expr.c