isl_tab_pip.c: context_gbr_detect_equalities: improve error handling
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 24 Mar 2013 09:20:24 +0000 (10:20 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 24 Mar 2013 09:20:24 +0000 (10:20 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_tab_pip.c

index 4124f4b..16bae5a 100644 (file)
@@ -3113,7 +3113,9 @@ static int context_gbr_detect_equalities(struct isl_context *context,
 
        n_ineq = cgbr->tab->bmap->n_ineq;
        cgbr->tab = isl_tab_detect_equalities(cgbr->tab, cgbr->cone);
-       if (cgbr->tab && cgbr->tab->bmap->n_ineq > n_ineq)
+       if (!cgbr->tab)
+               return -1;
+       if (cgbr->tab->bmap->n_ineq > n_ineq)
                propagate_equalities(cgbr, tab, n_ineq);
 
        return 0;