From ada63355b4837a90c7e187669b85142ed537c7ce Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 20 Nov 2017 12:29:14 +0100 Subject: [PATCH] isl_ctx_alloc_with_options: reuse isl_ctx_reset_error The next commit will add more error related fields that need to be reset in both isl_ctx_reset_error and isl_ctx_alloc_with_options. Signed-off-by: Sven Verdoolaege --- isl_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isl_ctx.c b/isl_ctx.c index 315cdee6..c130480b 100644 --- a/isl_ctx.c +++ b/isl_ctx.c @@ -202,7 +202,7 @@ isl_ctx *isl_ctx_alloc_with_options(struct isl_args *args, void *user_opt) ctx->n_cached = 0; ctx->n_miss = 0; - ctx->error = isl_error_none; + isl_ctx_reset_error(ctx); ctx->operations = 0; isl_ctx_set_max_operations(ctx, ctx->opt->max_operations); -- 2.11.4.GIT