From 46153fb09b428f2cd7461674c1d1a1295185a856 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 1 Jan 2012 18:00:49 +0100 Subject: [PATCH] isl_ctx_peek_options: special case isl_options_args The isl_options_args options are always available, even when they do not appear in ctx->user_opt. Just return them instead of looking through ctx->user_opt. Signed-off-by: Sven Verdoolaege --- isl_ctx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/isl_ctx.c b/isl_ctx.c index 3b14509..1dff37b 100644 --- a/isl_ctx.c +++ b/isl_ctx.c @@ -61,6 +61,8 @@ void *isl_ctx_peek_options(isl_ctx *ctx, struct isl_args *args) { if (!ctx) return NULL; + if (args == &isl_options_args) + return ctx->opt; return find_nested_options(ctx->user_args, ctx->user_opt, args); } -- 2.7.4