1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 23:36:00 +02:00

Remove invalid const check in InitializedSizedArray

This commit is contained in:
Brian Fiete 2024-03-20 17:45:43 -04:00
parent 94c2b980fe
commit 4b560ee531

View file

@ -20993,8 +20993,8 @@ void BfExprEvaluator::InitializedSizedArray(BfSizedArrayType* arrayType, BfToken
} }
elementValue = mModule->LoadOrAggregateValue(elementValue); elementValue = mModule->LoadOrAggregateValue(elementValue);
if (!elemPtrValue.IsConst()) // Note that elemPtrValue can be a const GEP on a global variable
mModule->mBfIRBuilder->CreateAlignedStore(elementValue.mValue, elemPtrValue, checkArrayType->mElementType->mAlign); mModule->mBfIRBuilder->CreateAlignedStore(elementValue.mValue, elemPtrValue, checkArrayType->mElementType->mAlign);
} }
} }