1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 12:02:21 +02:00

Fixed splat aggregate issue on array initialization

This commit is contained in:
Brian Fiete 2020-12-27 11:43:50 -08:00
parent ba9ce75a0b
commit 2896b84f7f

View file

@ -12902,8 +12902,8 @@ void BfExprEvaluator::CreateObject(BfObjectCreateExpression* objCreateExpr, BfAs
if (!storeValue) if (!storeValue)
continue; continue;
if (!resultType->IsValuelessType()) if (!resultType->IsValuelessType())
{ {
storeValue = mModule->LoadValue(storeValue); storeValue = mModule->LoadOrAggregateValue(storeValue);
mModule->mBfIRBuilder->CreateStore(storeValue.mValue, elemAddr); mModule->mBfIRBuilder->CreateStore(storeValue.mValue, elemAddr);
} }
} }