1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fix for sized array initializer with global variables

This commit is contained in:
Brian Fiete 2020-05-18 09:59:59 -07:00
parent cd09529c9a
commit 3509d659ea
2 changed files with 10 additions and 2 deletions

View file

@ -15590,9 +15590,10 @@ void BfExprEvaluator::InitializedSizedArray(BfSizedArrayType* arrayType, BfToken
// For now, we can't properly create const-valued non-size-aligned composites
if (checkArrayType->mElementType->NeedsExplicitAlignment())
isAllConst = false;
if (!elementValue.mValue.IsConst())
isAllConst = false;
if (elementValue.IsAddr())
isAllConst = false;
InitValue initValue;
initValue.mValue = elementValue;