# HG changeset patch # User Bram Moolenaar # Date 1613317503 -3600 # Node ID 9854b4c6d5e6930e7f9ef3ded8bca744899416e2 # Parent e99448a2d0a9749e971bb42adbe253b41f6b6185 patch 8.2.2516: test failure on s390 Commit: https://github.com/vim/vim/commit/4afa77419fb6e9ed194f8a3cf84dac7cda70deb4 Author: Bram Moolenaar Date: Sun Feb 14 16:34:59 2021 +0100 patch 8.2.2516: test failure on s390 Problem: Test failure on s390. (analyses by James McCoy) Solution: Only set the try_finally label when not skipping. diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2516, +/**/ 2515, /**/ 2514, diff --git a/src/vim9compile.c b/src/vim9compile.c --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -7719,17 +7719,21 @@ compile_endtry(char_u *arg, cctx_T *cctx compile_endblock(cctx); - if (try_isn->isn_arg.try.try_finally == 0) - // No :finally encountered, use the try_finaly field to point to - // ENDTRY, so that TRYCONT can jump there. - try_isn->isn_arg.try.try_finally = cctx->ctx_instr.ga_len; - - if (cctx->ctx_skip != SKIP_YES && generate_instr(cctx, ISN_ENDTRY) == NULL) - return NULL; + if (cctx->ctx_skip != SKIP_YES) + { + if (try_isn->isn_arg.try.try_finally == 0) + // No :finally encountered, use the try_finaly field to point to + // ENDTRY, so that TRYCONT can jump there. + try_isn->isn_arg.try.try_finally = instr->ga_len; + + if (cctx->ctx_skip != SKIP_YES + && generate_instr(cctx, ISN_ENDTRY) == NULL) + return NULL; #ifdef FEAT_PROFILE if (cctx->ctx_profiling) generate_instr(cctx, ISN_PROF_START); #endif + } return arg; }