MCPcopy Create free account
hub / github.com/beefytech/Beef / FixClassVData

Method FixClassVData

IDEHelper/Compiler/BfModule.cpp:8204–8211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8202}
8203
8204BfIRValue BfModule::FixClassVData(BfIRValue value)
8205{
8206 if ((!mCompiler->mOptions.mObjectHasDebugFlags) || (mIsComptimeModule))
8207 return value;
8208 auto intptrValue = mBfIRBuilder->CreatePtrToInt(value, BfTypeCode_IntPtr);
8209 auto maskedValue = mBfIRBuilder->CreateAnd(intptrValue, mBfIRBuilder->CreateConst(BfTypeCode_IntPtr, (uint64)~0xFFULL));
8210 return mBfIRBuilder->CreateIntToPtr(maskedValue, mBfIRBuilder->GetType(value));
8211}
8212
8213void BfModule::CheckStaticAccess(BfTypeInstance* typeInstance)
8214{

Callers 1

CreateCallMethod · 0.80

Calls 5

CreatePtrToIntMethod · 0.80
CreateAndMethod · 0.80
CreateIntToPtrMethod · 0.80
CreateConstMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected