mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Function explicit-this invoke reify fix
This commit is contained in:
parent
0fc118c13c
commit
166f997b0a
2 changed files with 1 additions and 4 deletions
|
@ -4675,9 +4675,6 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
|
|||
typeInstance->mInstSize = std::max(0, typeInstance->mInstSize);
|
||||
typeInstance->mInstAlign = std::max(0, typeInstance->mInstAlign);
|
||||
|
||||
if (typeInstance->IsFunction())
|
||||
typeInstance->mAlwaysIncludeFlags = (BfAlwaysIncludeFlags)(typeInstance->mAlwaysIncludeFlags | BfAlwaysIncludeFlag_IncludeAllMethods);
|
||||
|
||||
ProcessCustomAttributeData();
|
||||
int packing = 0;
|
||||
bool isUnion = false;
|
||||
|
|
|
@ -1105,7 +1105,7 @@ BfType* BfMethodInstance::GetThisType()
|
|||
auto thisType = mParams[0].mResolvedType;
|
||||
auto owner = GetOwner();
|
||||
if ((thisType->IsValueType()) && ((mMethodDef->mIsMutating) || (!AllowsSplatting(-1))) && (!thisType->GetLoweredType(BfTypeUsage_Parameter)))
|
||||
return owner->mModule->CreatePointerType(thisType);
|
||||
return owner->mModule->mContext->mUnreifiedModule->CreatePointerType(thisType);
|
||||
return thisType;
|
||||
}
|
||||
return GetParamType(-1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue