summaryrefslogtreecommitdiff
path: root/src/lj_asm.c
diff options
context:
space:
mode:
authorMike Pall <mike>2018-01-29 13:06:13 +0100
committerMike Pall <mike>2018-01-29 13:06:13 +0100
commitd4ee80342770d1281e2ce877f8ae8ab1d99e6528 (patch)
treecd8db1f5da7f2bfbecc4092f2646665128dad227 /src/lj_asm.c
parentb03a56f28ec360bbcf43091afd0607890a4a33c7 (diff)
downloadluajit-d4ee80342770d1281e2ce877f8ae8ab1d99e6528.tar.gz
luajit-d4ee80342770d1281e2ce877f8ae8ab1d99e6528.tar.bz2
luajit-d4ee80342770d1281e2ce877f8ae8ab1d99e6528.zip
Fix GCC 7 -Wimplicit-fallthrough warnings.
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r--src/lj_asm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c
index 02714d4e..dd7186f6 100644
--- a/src/lj_asm.c
+++ b/src/lj_asm.c
@@ -1725,6 +1725,7 @@ static void asm_setup_regsp(ASMState *as)
1725 case IR_SNEW: case IR_XSNEW: case IR_NEWREF: 1725 case IR_SNEW: case IR_XSNEW: case IR_NEWREF:
1726 if (REGARG_NUMGPR < 3 && as->evenspill < 3) 1726 if (REGARG_NUMGPR < 3 && as->evenspill < 3)
1727 as->evenspill = 3; /* lj_str_new and lj_tab_newkey need 3 args. */ 1727 as->evenspill = 3; /* lj_str_new and lj_tab_newkey need 3 args. */
1728 /* fallthrough */
1728 case IR_TNEW: case IR_TDUP: case IR_CNEW: case IR_CNEWI: case IR_TOSTR: 1729 case IR_TNEW: case IR_TDUP: case IR_CNEW: case IR_CNEWI: case IR_TOSTR:
1729 ir->prev = REGSP_HINT(RID_RET); 1730 ir->prev = REGSP_HINT(RID_RET);
1730 if (inloop) 1731 if (inloop)
@@ -1750,7 +1751,7 @@ static void asm_setup_regsp(ASMState *as)
1750#endif 1751#endif
1751 continue; 1752 continue;
1752 } 1753 }
1753 /* fallthrough for integer POW */ 1754 /* fallthrough */ /* for integer POW */
1754 case IR_DIV: case IR_MOD: 1755 case IR_DIV: case IR_MOD:
1755 if (!irt_isnum(ir->t)) { 1756 if (!irt_isnum(ir->t)) {
1756 ir->prev = REGSP_HINT(RID_RET); 1757 ir->prev = REGSP_HINT(RID_RET);