isl_basic_set_opt: avoid invalid access on error path
[platform/upstream/isl.git] / isl_band.c
index 318a7c1..e545a8a 100644 (file)
@@ -470,6 +470,7 @@ int isl_band_tile(__isl_keep isl_band *band, __isl_take isl_vec *sizes)
 
        child->children = band->children;
        band->children = list;
+       child->parent = band;
        isl_union_pw_multi_aff_free(band->pma);
        band->pma = sched;