mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Reworked static append fields
This commit is contained in:
parent
9d8647cd84
commit
ec34aa3d43
6 changed files with 147 additions and 85 deletions
|
@ -5310,7 +5310,7 @@ BfTypedValue BfExprEvaluator::LoadField(BfAstNode* targetSrc, BfTypedValue targe
|
|||
(mModule->mCurMethodInstance->mMethodDef->IsCtorOrInit()) &&
|
||||
(mModule->mCurMethodInstance->mMethodDef->mIsStatic);
|
||||
|
||||
if ((mModule->mCompiler->mOptions.mRuntimeChecks) && (fieldInstance->IsAppendedObject()) && (!mModule->mBfIRBuilder->mIgnoreWrites) &&
|
||||
if ((mModule->mCompiler->mOptions.mRuntimeChecks) && (fieldInstance->IsAppendedObject()) && (!fieldDef->mIsStatic) && (!mModule->mBfIRBuilder->mIgnoreWrites) &&
|
||||
(!mModule->IsSkippingExtraResolveChecks()))
|
||||
{
|
||||
auto intType = mModule->GetPrimitiveType(BfTypeCode_IntPtr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue