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:
parent
94c2b980fe
commit
4b560ee531
1 changed files with 2 additions and 2 deletions
|
@ -20993,7 +20993,7 @@ void BfExprEvaluator::InitializedSizedArray(BfSizedArrayType* arrayType, BfToken
|
|||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue