mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed ref autoprop
This commit is contained in:
parent
7e307b2f0d
commit
18208cb958
1 changed files with 2 additions and 1 deletions
|
@ -19491,7 +19491,8 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup)
|
|||
lookupValue = BfTypedValue(mBfIRBuilder->CreateInBoundsGEP(GetThis().mValue, 0, fieldInstance->mDataIdx), fieldInstance->mResolvedType, true);
|
||||
else
|
||||
lookupValue = ExtractValue(GetThis(), fieldInstance, fieldInstance->mDataIdx);
|
||||
lookupValue = LoadOrAggregateValue(lookupValue);
|
||||
if (!methodInstance->mReturnType->IsRef())
|
||||
lookupValue = LoadOrAggregateValue(lookupValue);
|
||||
CreateReturn(lookupValue.mValue);
|
||||
EmitLifetimeEnds(&mCurMethodState->mHeadScope);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue