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:
parent
2a57d9d447
commit
79d13a3626
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue