projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Filter: Handle the unary bitwise not operator (~) with an unsupported op error
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
filter-visitor-generate-ir.c
diff --git
a/src/lib/lttng-ctl/filter-visitor-generate-ir.c
b/src/lib/lttng-ctl/filter-visitor-generate-ir.c
index 899713ee6aab6ff27870ce70bb7ce8020290ad4a..d23372f4b0eb672abf15f0c08bffb73c7e3212ab 100644
(file)
--- a/
src/lib/lttng-ctl/filter-visitor-generate-ir.c
+++ b/
src/lib/lttng-ctl/filter-visitor-generate-ir.c
@@
-652,6
+652,8
@@
static
struct ir_op *make_unary_op(struct filter_parser_ctx *ctx,
struct filter_node *node, enum ir_side side)
{
struct ir_op *make_unary_op(struct filter_parser_ctx *ctx,
struct filter_node *node, enum ir_side side)
{
+ const char *op_str = "?";
+
switch (node->u.unary_op.type) {
case AST_UNARY_UNKNOWN:
default:
switch (node->u.unary_op.type) {
case AST_UNARY_UNKNOWN:
default:
@@
-703,7
+705,17
@@
struct ir_op *make_unary_op(struct filter_parser_ctx *ctx,
}
return op;
}
}
return op;
}
+ case AST_UNARY_BIN_NOT:
+ {
+ op_str = "~";
+ goto error_not_supported;
+ }
}
}
+
+error_not_supported:
+ fprintf(stderr, "[error] %s: unary operation '%s' not supported\n",
+ __func__, op_str);
+ return NULL;
}
static
}
static
This page took
0.024146 seconds
and
4
git commands to generate.