mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Array creation const check
This commit is contained in:
parent
c1003cd3e0
commit
fa019f03bf
1 changed files with 2 additions and 1 deletions
|
@ -20963,7 +20963,8 @@ void BfExprEvaluator::InitializedSizedArray(BfSizedArrayType* arrayType, BfToken
|
||||||
}
|
}
|
||||||
|
|
||||||
elementValue = mModule->LoadOrAggregateValue(elementValue);
|
elementValue = mModule->LoadOrAggregateValue(elementValue);
|
||||||
mModule->mBfIRBuilder->CreateAlignedStore(elementValue.mValue, elemPtrValue, checkArrayType->mElementType->mAlign);
|
if (!elementValue.mValue.IsConst())
|
||||||
|
mModule->mBfIRBuilder->CreateAlignedStore(elementValue.mValue, elemPtrValue, checkArrayType->mElementType->mAlign);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue