1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed aggregate return issue

This commit is contained in:
Brian Fiete 2020-10-17 07:03:09 -07:00
parent 2a57d9d447
commit 79d13a3626

View file

@ -18896,7 +18896,7 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup)
if ((retVal) && (!retVal.mType->IsVar()) && (expectingType != NULL))
{
mCurMethodState->mHadReturn = true;
retVal = LoadValue(retVal);
retVal = LoadOrAggregateValue(retVal);
EmitReturn(retVal.mValue);
}
}