1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +02:00

Address-of immutable is now a warning instead of error, added [NoSplat]

This commit is contained in:
Brian Fiete 2020-10-07 11:07:10 -07:00
parent 557b13070c
commit 808a4438d7
7 changed files with 69 additions and 41 deletions

View file

@ -764,6 +764,8 @@ bool BfMethodInstance::AllowsSplatting()
{
if (mCallingConvention != BfCallingConvention_Unspecified)
return false;
if (mMethodDef->mIsNoSplat)
return false;
return true;
}
@ -771,6 +773,8 @@ bool BfMethodInstance::AllowsThisSplatting()
{
if (mCallingConvention != BfCallingConvention_Unspecified)
return false;
if (mMethodDef->mIsNoSplat)
return false;
return !mMethodDef->HasNoThisSplat();
}