isl_basic_set_opt: avoid invalid access on error path
[platform/upstream/isl.git] / isl_list.c
index 81456f7..bb926b7 100644 (file)
@@ -1,18 +1,24 @@
 /*
  * Copyright 2008-2009 Katholieke Universiteit Leuven
  *
- * Use of this software is governed by the GNU LGPLv2.1 license
+ * Use of this software is governed by the MIT license
  *
  * Written by Sven Verdoolaege, K.U.Leuven, Departement
  * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
  */
 
 #include <isl_list_private.h>
+#include <isl/constraint.h>
 #include <isl/set.h>
 #include <isl/aff.h>
 #include <isl/band.h>
 
 #undef BASE
+#define BASE constraint
+
+#include <isl_list_templ.c>
+
+#undef BASE
 #define BASE basic_set
 
 #include <isl_list_templ.c>