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:
parent
1f007ba771
commit
1f6fcfd6b2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue