Set hidden visibility for calls used in lttng-ctl
[lttng-tools.git] / src / lib / lttng-ctl / filter-visitor-generate-ir.c
index dd0d7ffaf7137fc49f938462e4e7c4950a5a9cd8..d23372f4b0eb672abf15f0c08bffb73c7e3212ab 100644 (file)
@@ -26,8 +26,8 @@
 #include <assert.h>
 #include <errno.h>
 #include <inttypes.h>
-#include "filter-parser.h"
 #include "filter-ast.h"
+#include "filter-parser.h"
 #include "filter-ir.h"
 
 static
@@ -652,6 +652,8 @@ static
 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:
@@ -703,7 +705,17 @@ struct ir_op *make_unary_op(struct filter_parser_ctx *ctx,
                }
                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
This page took 0.024284 seconds and 4 git commands to generate.