diff options
author | Mike Pall <mike> | 2017-03-08 23:04:46 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2017-03-08 23:04:46 +0100 |
commit | d3e36e7920c641410dfcdf1fc6c10069fd3192a6 (patch) | |
tree | 04ae8ac89a49d1017171f293eff8e4bfbd2a547b /src/lj_parse.c | |
parent | a25c0b99b84558887887b8e298409dcf8605e5e3 (diff) | |
parent | f50bf7585a32738c4fb719cb8fc59d02231fc8c3 (diff) | |
download | luajit-d3e36e7920c641410dfcdf1fc6c10069fd3192a6.tar.gz luajit-d3e36e7920c641410dfcdf1fc6c10069fd3192a6.tar.bz2 luajit-d3e36e7920c641410dfcdf1fc6c10069fd3192a6.zip |
Merge branch 'master' into v2.1
Diffstat (limited to 'src/lj_parse.c')
-rw-r--r-- | src/lj_parse.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lj_parse.c b/src/lj_parse.c index b5b7b6b4..08f7cfa6 100644 --- a/src/lj_parse.c +++ b/src/lj_parse.c | |||
@@ -1282,12 +1282,14 @@ static void fscope_end(FuncState *fs) | |||
1282 | MSize idx = gola_new(ls, NAME_BREAK, VSTACK_LABEL, fs->pc); | 1282 | MSize idx = gola_new(ls, NAME_BREAK, VSTACK_LABEL, fs->pc); |
1283 | ls->vtop = idx; /* Drop break label immediately. */ | 1283 | ls->vtop = idx; /* Drop break label immediately. */ |
1284 | gola_resolve(ls, bl, idx); | 1284 | gola_resolve(ls, bl, idx); |
1285 | } else { /* Need the fixup step to propagate the breaks. */ | ||
1286 | gola_fixup(ls, bl); | ||
1285 | return; | 1287 | return; |
1286 | } /* else: need the fixup step to propagate the breaks. */ | 1288 | } |
1287 | } else if (!(bl->flags & FSCOPE_GOLA)) { | 1289 | } |
1288 | return; | 1290 | if ((bl->flags & FSCOPE_GOLA)) { |
1291 | gola_fixup(ls, bl); | ||
1289 | } | 1292 | } |
1290 | gola_fixup(ls, bl); | ||
1291 | } | 1293 | } |
1292 | 1294 | ||
1293 | /* Mark scope as having an upvalue. */ | 1295 | /* Mark scope as having an upvalue. */ |