diff options
author | Sven Verdoolaege <skimo@kotnet.org> | 2013-06-10 09:58:12 +0200 |
---|---|---|
committer | Sven Verdoolaege <skimo@kotnet.org> | 2013-06-10 09:58:12 +0200 |
commit | 4fff6cf84785a942c0676848ea2ae4115820b327 (patch) | |
tree | f0e29f0fc8a2b807a3345b6fac5b2128444591de /isl_tab_pip.c | |
parent | 01ce556bde8e412a53b57d621aa52121b1798f26 (diff) | |
parent | 43fff90f1d95d55832497e0ed797aee01fe8e54c (diff) | |
download | isl-4fff6cf84785a942c0676848ea2ae4115820b327.tar.gz isl-4fff6cf84785a942c0676848ea2ae4115820b327.tar.bz2 isl-4fff6cf84785a942c0676848ea2ae4115820b327.zip |
Merge branch 'maint'
Diffstat (limited to 'isl_tab_pip.c')
-rw-r--r-- | isl_tab_pip.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/isl_tab_pip.c b/isl_tab_pip.c index 2592a285..6e575c1c 100644 --- a/isl_tab_pip.c +++ b/isl_tab_pip.c @@ -2729,6 +2729,8 @@ static struct isl_basic_set *drop_constant_terms(struct isl_basic_set *bset) static int use_shifted(struct isl_context_gbr *cgbr) { + if (!cgbr->tab) + return 0; return cgbr->tab->bmap->n_eq == 0 && cgbr->tab->bmap->n_div == 0; } @@ -3220,6 +3222,9 @@ static void *context_gbr_save(struct isl_context *context) struct isl_context_gbr *cgbr = (struct isl_context_gbr *)context; struct isl_gbr_tab_undo *snap; + if (!cgbr->tab) + return NULL; + snap = isl_alloc_type(cgbr->tab->mat->ctx, struct isl_gbr_tab_undo); if (!snap) return NULL; |