isl_ast_build_init_derived: check build->domain
commit44129b5e4837c123d35975b8ac382a0c7f5c8ed8
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 30 Nov 2012 17:01:42 +0000 (30 18:01 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 1 Dec 2012 16:37:59 +0000 (1 17:37 +0100)
treeb94c4265e794ad34489a97affcbb9881e9b5e61f
parent1bbd60df071ef02f3698166a86adb76290ff2619
isl_ast_build_init_derived: check build->domain

If something has gone wrong during the construction of the isl_ast_build,
its domain field may be NULL.  Since isl_ast_build_get_ctx obtains
the isl_ctx from this field, we should not continue if build->domain is NULL.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_ast_build.c