projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: filter: fix variable shadowing in visit_node_load_expression
[lttng-tools.git]
/
src
/
common
/
filter
/
filter-visitor-generate-bytecode.c
diff --git
a/src/common/filter/filter-visitor-generate-bytecode.c
b/src/common/filter/filter-visitor-generate-bytecode.c
index e0ba9fd0a43d342ca3540cc6785dddb57f1b898a..8bf87d7c6661e84dc4b920c16eb9c8851b393168 100644
(file)
--- a/
src/common/filter/filter-visitor-generate-bytecode.c
+++ b/
src/common/filter/filter-visitor-generate-bytecode.c
@@
-240,7
+240,7
@@
int visit_node_load_expression(struct filter_parser_ctx *ctx,
switch (op->type) {
case IR_LOAD_EXPRESSION_GET_CONTEXT_ROOT:
{
switch (op->type) {
case IR_LOAD_EXPRESSION_GET_CONTEXT_ROOT:
{
-
const int
ret = bytecode_push_get_context_root(&ctx->bytecode);
+ ret = bytecode_push_get_context_root(&ctx->bytecode);
if (ret) {
return ret;
if (ret) {
return ret;
@@
-250,7
+250,8
@@
int visit_node_load_expression(struct filter_parser_ctx *ctx,
}
case IR_LOAD_EXPRESSION_GET_APP_CONTEXT_ROOT:
{
}
case IR_LOAD_EXPRESSION_GET_APP_CONTEXT_ROOT:
{
- const int ret = bytecode_push_get_app_context_root(&ctx->bytecode);
+ ret = bytecode_push_get_app_context_root(
+ &ctx->bytecode);
if (ret) {
return ret;
if (ret) {
return ret;
@@
-260,7
+261,7
@@
int visit_node_load_expression(struct filter_parser_ctx *ctx,
}
case IR_LOAD_EXPRESSION_GET_PAYLOAD_ROOT:
{
}
case IR_LOAD_EXPRESSION_GET_PAYLOAD_ROOT:
{
-
const int
ret = bytecode_push_get_payload_root(&ctx->bytecode);
+ ret = bytecode_push_get_payload_root(&ctx->bytecode);
if (ret) {
return ret;
if (ret) {
return ret;
@@
-270,10
+271,8
@@
int visit_node_load_expression(struct filter_parser_ctx *ctx,
}
case IR_LOAD_EXPRESSION_GET_SYMBOL:
{
}
case IR_LOAD_EXPRESSION_GET_SYMBOL:
{
- const int ret = bytecode_push_get_symbol(
- &ctx->bytecode,
- &ctx->bytecode_reloc,
- op->u.symbol);
+ ret = bytecode_push_get_symbol(&ctx->bytecode,
+ &ctx->bytecode_reloc, op->u.symbol);
if (ret) {
return ret;
if (ret) {
return ret;
@@
-283,7
+282,8
@@
int visit_node_load_expression(struct filter_parser_ctx *ctx,
}
case IR_LOAD_EXPRESSION_GET_INDEX:
{
}
case IR_LOAD_EXPRESSION_GET_INDEX:
{
- const int ret = bytecode_push_get_index_u64(&ctx->bytecode, op->u.index);
+ ret = bytecode_push_get_index_u64(
+ &ctx->bytecode, op->u.index);
if (ret) {
return ret;
if (ret) {
return ret;
@@
-295,7
+295,6
@@
int visit_node_load_expression(struct filter_parser_ctx *ctx,
{
struct load_op *insn;
uint32_t insn_len = sizeof(struct load_op);
{
struct load_op *insn;
uint32_t insn_len = sizeof(struct load_op);
- int ret;
insn = calloc(insn_len, 1);
if (!insn)
insn = calloc(insn_len, 1);
if (!insn)
This page took
0.024472 seconds
and
4
git commands to generate.