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

Fixed handling of deferred assignment of splats in case captures

This commit is contained in:
Brian Fiete 2023-02-08 10:06:38 -05:00
parent 1f007ba771
commit 1f6fcfd6b2

View file

@ -2607,7 +2607,7 @@ void BfModule::HandleCaseEnumMatch_Tuple(BfTypedValue tupleVal, const BfSizedArr
auto tupleElement = Cast(deferredAssign.mExpr, deferredAssign.mTupleElement, argValue.mType);
if (!tupleElement)
continue;
tupleElement = LoadValue(tupleElement);
tupleElement = LoadOrAggregateValue(tupleElement);
if (!tupleElement.mType->IsValuelessType())
mBfIRBuilder->CreateStore(tupleElement.mValue, argValue.mValue);
}