fix call nesting issue with -TFTE

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4891 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2015-06-08 08:07:42 +00:00
parent a1159e3e2b
commit 7ce8a329ec
1 changed files with 2 additions and 1 deletions

View File

@ -4493,6 +4493,8 @@ QCC_sref_t QCC_PR_GenerateFunctionCall (QCC_sref_t newself, QCC_sref_t func, QCC
QCC_FreeTemp(QCC_PR_StatementFlags (&pr_opcodes[OP_STORE_F], QCC_MakeFloatConst(argcount), va_passcount, NULL, 0));
}
QCC_ClobberDef(&def_ret);
/*can free temps used for arguments now*/
if (callconvention == OP_CALL1H)
{
@ -4500,7 +4502,6 @@ QCC_sref_t QCC_PR_GenerateFunctionCall (QCC_sref_t newself, QCC_sref_t func, QCC
QCC_FreeTemp(arglist[i]);
}
QCC_ClobberDef(&def_ret);
//we dont need to lock the local containing the function index because its thrown away after the call anyway
//(if a function is called in the argument list then it'll be locked as part of that call)
QCC_LockActiveTemps(func); //any temps before are likly to be used with the return value.