/* Ensures final expression result (including results from its jump lists) is in some (any) register and return that register.  */
int luaK_exp2anyreg(FuncState *fs, expdesc *e)
/* Ensures final expression result (including results from its jump lists) is in some (any) register and return that register.  */
int luaK_exp2anyreg(FuncState *fs, expdesc *e)
{
    if (!hasjumps(e))
      return e->u.info;
    if (e->u.info >= fs->nactvar) {
      exp2reg(fs, e, e->u.info);
      return e->u.info;
    }
  }
  luaK_exp2nextreg(fs, e);
  return e->u.info;
}