Filter: opcode for ref load
[lttng-tools.git] / src / lib / lttng-ctl / filter-visitor-generate-bytecode.c
index 8e18a1a622ac65a918792012ada24c3719fc9f8c..8c8bf51ce26b07e8dc0576c3f232869c4292a8db 100644 (file)
@@ -235,9 +235,8 @@ int visit_node_load(struct filter_parser_ctx *ctx, struct ir_op *node)
                memcpy(insn->data, &ref_offset, sizeof(ref_offset));
                if (insn->reg == REG_ERROR)
                        return -EINVAL;
-               /* reloc_offset points to struct field_ref */
+               /* reloc_offset points to struct load_op */
                reloc_offset = bytecode_get_len(&ctx->bytecode->b);
-               reloc_offset += sizeof(struct load_op);
                ret = bytecode_push(&ctx->bytecode, insn, 1, insn_len);
                if (ret) {
                        free(insn);
This page took 0.024062 seconds and 4 git commands to generate.