Handle calls with max. args in backends even after SPLIT.

This commit is contained in:
Mike Pall
2013-05-16 19:59:38 +02:00
parent 1c7650f782
commit 0f79d4741f
5 changed files with 9 additions and 9 deletions

View File

@@ -948,7 +948,7 @@ static void asm_collectargs(ASMState *as, IRIns *ir,
const CCallInfo *ci, IRRef *args)
{
uint32_t n = CCI_NARGS(ci);
lua_assert(n <= CCI_NARGS_MAX);
lua_assert(n <= CCI_NARGS_MAX*2); /* Account for split args. */
if ((ci->flags & CCI_L)) { *args++ = ASMREF_L; n--; }
while (n-- > 1) {
ir = IR(ir->op1);