projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47ea804
)
isl_ctx_peek_options: special case isl_options_args
author
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 1 Jan 2012 17:00:49 +0000
(18:00 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 1 Jan 2012 17:00:49 +0000
(18:00 +0100)
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 <skimo@kotnet.org>
isl_ctx.c
patch
|
blob
|
history
diff --git
a/isl_ctx.c
b/isl_ctx.c
index
3b14509
..
1dff37b
100644
(file)
--- 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);
}