It seems safe to just re-use the `ret` variable at the function-level
scope.
Change-Id: I7826edf2b8bb41f9c202af75a8b5e7dff9cbbcc8
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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);
}
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);
}
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);
}
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);
}
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);
{
struct load_op *insn;
uint32_t insn_len = sizeof(struct load_op);
{
struct load_op *insn;
uint32_t insn_len = sizeof(struct load_op);
insn = calloc(insn_len, 1);
if (!insn)
insn = calloc(insn_len, 1);
if (!insn)