drop isl_tab_extend in favor of isl_tab_extend_cons
commit8c1741939f2255115d03d1c694bfdfd7986050de
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 17 Apr 2014 21:09:30 +0000 (17 23:09 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 17 Apr 2014 21:09:30 +0000 (17 23:09 +0200)
tree148fb0dff9910aa8cc05ae8ca9617b04b4890153
parentd6474520899df70920f4b69a4437d273ccf6b5f4
drop isl_tab_extend in favor of isl_tab_extend_cons

Since an isl_tab is not reference counted, there may be no way for
callers of isl_tab_extend their callers that the isl_tab has already
been freed, possible resulting in double frees on errors.
isl_tab_extend is just a wrapper around isl_tab_extend_cons turning
the appropriate interface of returning -1 on error into a bad interface
of freeing the isl_tab and returning NULL.
Move the single remaining call to isl_tab_extend to a call
to isl_tab_extend_cons.  This does not solve any problems in itself
but should avoid future problems with isl_tab_extend.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_map_simplify.c
isl_tab.c
isl_tab.h