Recent clangs complain that "n" may be used uninitialized in the call
to free_isl_fixed_map_array. However, this only happens data.v is NULL,
in which case free_isl_fixed_map_array does not even look at n.
By moving the initialization of n up, we can silence this warning.
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
ctx = isl_union_map_get_ctx(umap);
+ n = isl_union_map_n_map(umap);
if (!umap)
goto error;
- n = isl_union_map_n_map(umap);
if (n <= 1) {
isl_union_map_free(umap);
return 1;