isl_parameter_alignment_reordering: fix error handling
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 2 Dec 2012 12:16:02 +0000 (13:16 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 2 Dec 2012 12:16:02 +0000 (13:16 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_reordering.c

index e824f21..30e2c8b 100644 (file)
@@ -128,6 +128,8 @@ __isl_give isl_reordering *isl_parameter_alignment_reordering(
                }
        }
 
+       if (!exp->dim)
+               return isl_reordering_free(exp);
        return exp;
 error:
        isl_reordering_free(exp);