fixed varadic function inlining

This commit is contained in:
drmortalwombat 2024-09-15 20:18:33 +02:00
parent 723f407757
commit 4423837888
2 changed files with 3 additions and 3 deletions

View File

@ -21975,7 +21975,7 @@ void InterCodeProcedure::Close(void)
{
GrowingTypeArray tstack(IT_NONE);
CheckFunc = !strcmp(mIdent->mString, "test");
CheckFunc = !strcmp(mIdent->mString, "main");
CheckCase = false;
mEntryBlock = mBlocks[0];
@ -23819,7 +23819,7 @@ void InterCodeProcedure::Disassemble(FILE* file)
void InterCodeProcedure::Disassemble(const char* name, bool dumpSets)
{
#if 1
#if 0
#ifdef _WIN32
FILE* file;
static bool initial = true;

View File

@ -5633,7 +5633,7 @@ InterCodeProcedure* InterCodeGenerator::TranslateProcedure(InterCodeModule * mod
if (dec->mFlags & DTF_DYNSTACK)
proc->mDynamicStack = true;
if (dec->mFlags & DTF_PREVENT_INLINE)
if ((dec->mFlags & DTF_PREVENT_INLINE) || (dec->mBase->mFlags & DTF_VARIADIC))
proc->mNoInline = true;
if (dec->mBase->mFlags & DTF_FASTCALL)