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

Fix for splats passing into params

This commit is contained in:
Brian Fiete 2025-01-02 13:39:31 -08:00
parent 7f9a272e23
commit fb3cd1ac83

View file

@ -8556,7 +8556,7 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
}
else if (expandedParamAlloca)
{
argValue = mModule->LoadValue(argValue);
argValue = mModule->LoadOrAggregateValue(argValue);
auto addr = mModule->mBfIRBuilder->CreateInBoundsGEP(expandedParamAlloca, extendedParamIdx);
auto storeInst = mModule->mBfIRBuilder->CreateAlignedStore(argValue.mValue, addr, argValue.mType->mAlign);
}