mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +02:00
fixed thiscall compile crash now hopefully
This commit is contained in:
parent
8975b30e0f
commit
10c8196352
2 changed files with 18 additions and 3 deletions
|
@ -1227,8 +1227,7 @@ void BfMethodInstance::GetIRFunctionInfo(BfModule* module, BfIRType& returnType,
|
|||
{
|
||||
checkType = GetParamType(0);
|
||||
|
||||
//TODO(BCF): Breaks tests
|
||||
//hasExplicitThis = true;
|
||||
hasExplicitThis = true;
|
||||
}
|
||||
else
|
||||
checkType = GetOwner();
|
||||
|
@ -1236,7 +1235,7 @@ void BfMethodInstance::GetIRFunctionInfo(BfModule* module, BfIRType& returnType,
|
|||
}
|
||||
else
|
||||
{
|
||||
if (hasExplicitThis)
|
||||
if (hasExplicitThis && paramIdx == 0)
|
||||
{
|
||||
// We already looked at this
|
||||
hasExplicitThis = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue