core/iwasm/compilation: constify a bit (#2223)

Just to make the code a bit easier to read.
This commit is contained in:
YAMAMOTO Takashi
2023-05-20 12:55:02 +09:00
committed by GitHub
parent d692878484
commit 670567f8b3
3 changed files with 27 additions and 22 deletions

View File

@ -112,7 +112,7 @@ static bool
compile_global(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
uint32 global_idx, bool is_set, bool is_aux_stack)
{
AOTCompData *comp_data = comp_ctx->comp_data;
const AOTCompData *comp_data = comp_ctx->comp_data;
uint32 import_global_count = comp_data->import_global_count;
uint32 global_base_offset;
uint32 global_offset;