| 8202 | } |
| 8203 | |
| 8204 | BfIRValue 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 | |
| 8213 | void BfModule::CheckStaticAccess(BfTypeInstance* typeInstance) |
| 8214 | { |
no test coverage detected