1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed splat interference with methodRef

This commit is contained in:
Brian Fiete 2020-10-13 13:42:23 -07:00
parent 0b02483971
commit 13ca09a464

View file

@ -1174,7 +1174,7 @@ void BfMethodInstance::GetIRFunctionInfo(BfModule* module, BfIRType& returnType,
if ((checkType->IsValuelessType()) && (!checkType->IsMethodRef())) if ((checkType->IsValuelessType()) && (!checkType->IsMethodRef()))
continue; continue;
if (doSplat) if ((doSplat) && (!checkType->IsMethodRef()))
{ {
int splatCount = checkType->GetSplatCount(); int splatCount = checkType->GetSplatCount();
if ((int)paramTypes.size() + splatCount > module->mCompiler->mOptions.mMaxSplatRegs) if ((int)paramTypes.size() + splatCount > module->mCompiler->mOptions.mMaxSplatRegs)