mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed delegate object access check
This commit is contained in:
parent
58ef18735c
commit
c58dcb90df
1 changed files with 2 additions and 2 deletions
|
@ -16786,11 +16786,11 @@ void BfModule::CreateDelegateInvokeMethod()
|
|||
{
|
||||
numVal = mBfIRBuilder->CreatePtrToInt(fieldVal, BfTypeCode_UInt64);
|
||||
auto andVal = mBfIRBuilder->CreateAnd(numVal, mBfIRBuilder->CreateConst(BfTypeCode_UInt64, ~0x8000000000000000ULL));
|
||||
fieldVal = andVal;
|
||||
fieldVal = mBfIRBuilder->CreateIntToPtr(andVal, mBfIRBuilder->MapType(mContext->mBfObjectType));
|
||||
}
|
||||
|
||||
if ((WantsObjectAccessCheck(mContext->mBfObjectType) && (mCompiler->mSystem->mPtrSize == 8)))
|
||||
{
|
||||
{
|
||||
auto oacDoBB = mBfIRBuilder->CreateBlock("oac.do", true);
|
||||
auto oacDoneBB = mBfIRBuilder->CreateBlock("oac.done");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue