isl_map.c: declare variable at start of code block
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 18 Oct 2009 16:24:26 +0000 (18:24 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 21 Oct 2009 20:58:47 +0000 (22:58 +0200)
isl_map.c

index 44963b7..9a0beb1 100644 (file)
--- a/isl_map.c
+++ b/isl_map.c
@@ -3600,6 +3600,7 @@ struct isl_map *isl_basic_map_compute_divs(struct isl_basic_map *bmap)
 {
        int i;
        int known;
+       struct isl_map *map;
 
        known = basic_map_divs_known(bmap);
        if (known < 0)
@@ -3615,7 +3616,7 @@ struct isl_map *isl_basic_map_compute_divs(struct isl_basic_map *bmap)
        if (known)
                return isl_map_from_basic_map(bmap);
 
-       struct isl_map *map = compute_divs(bmap);
+       map = compute_divs(bmap);
        return map;
 error:
        isl_basic_map_free(bmap);