From: Sven Verdoolaege Date: Mon, 3 Dec 2012 12:37:42 +0000 (+0100) Subject: isl_schedule.c: add_inter_constraints: avoid invalid access on error X-Git-Tag: isl-0.11.1~5 X-Git-Url: https://repo.or.cz/w/isl.git/commitdiff_plain/ea8425223903fe290fcd3c656b3ce759b7fb8b54 isl_schedule.c: add_inter_constraints: avoid invalid access on error Signed-off-by: Sven Verdoolaege --- diff --git a/isl_schedule.c b/isl_schedule.c index 0e6a3aa8..51e9dc05 100644 --- a/isl_schedule.c +++ b/isl_schedule.c @@ -2240,6 +2240,8 @@ static int add_inter_constraints(struct isl_sched_graph *graph, struct isl_sched_node *dst = edge->dst; coef = inter_coefficients(graph, map); + if (!coef) + return -1; dim = isl_space_domain(isl_space_unwrap(isl_basic_set_get_space(coef)));