diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-25 18:23:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-25 18:23:24 +0000 |
commit | 5cd647935d0834b3064aa36384b8f6730fadadd6 (patch) | |
tree | d0b40261ac7160d723f5bca46cf57d43641e9aed /src/proto | |
parent | 35cfd793aad7c4bfba4a9bedf5c435c44e4293d0 (diff) | |
download | vim-git-5cd647935d0834b3064aa36384b8f6730fadadd6.tar.gz |
patch 8.2.3893: Vim9: many local variables are initialized with an instructionv8.2.3893
Problem: Vim9: many local variables are initialized with an instruction.
Solution: Initialize local variables to zero to avoid the instructions.
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/vim9instr.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/vim9instr.pro b/src/proto/vim9instr.pro index 4df3af001..0083334d9 100644 --- a/src/proto/vim9instr.pro +++ b/src/proto/vim9instr.pro @@ -65,7 +65,7 @@ int generate_UNPACK(cctx_T *cctx, int var_count, int semicolon); int generate_cmdmods(cctx_T *cctx, cmdmod_T *cmod); int generate_undo_cmdmods(cctx_T *cctx); int generate_store_var(cctx_T *cctx, assign_dest_T dest, int opt_flags, int vimvaridx, int scriptvar_idx, int scriptvar_sid, type_T *type, char_u *name); -int generate_store_lhs(cctx_T *cctx, lhs_T *lhs, int instr_count); +int generate_store_lhs(cctx_T *cctx, lhs_T *lhs, int instr_count, int is_decl); void may_generate_prof_end(cctx_T *cctx, int prof_lnum); void delete_instr(isn_T *isn); void clear_instr_ga(garray_T *gap); |