Fix GCC 7 -Wimplicit-fallthrough warnings.
This commit is contained in:
@@ -1725,6 +1725,7 @@ static void asm_setup_regsp(ASMState *as)
|
||||
case IR_SNEW: case IR_XSNEW: case IR_NEWREF:
|
||||
if (REGARG_NUMGPR < 3 && as->evenspill < 3)
|
||||
as->evenspill = 3; /* lj_str_new and lj_tab_newkey need 3 args. */
|
||||
/* fallthrough */
|
||||
case IR_TNEW: case IR_TDUP: case IR_CNEW: case IR_CNEWI: case IR_TOSTR:
|
||||
ir->prev = REGSP_HINT(RID_RET);
|
||||
if (inloop)
|
||||
@@ -1750,7 +1751,7 @@ static void asm_setup_regsp(ASMState *as)
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
/* fallthrough for integer POW */
|
||||
/* fallthrough */ /* for integer POW */
|
||||
case IR_DIV: case IR_MOD:
|
||||
if (!irt_isnum(ir->t)) {
|
||||
ir->prev = REGSP_HINT(RID_RET);
|
||||
|
||||
Reference in New Issue
Block a user