mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32: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
|
@ -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