mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Tuple deferred assignment fix with casted ref values
This commit is contained in:
parent
1ee0a19bbf
commit
f1c38c792d
1 changed files with 3 additions and 1 deletions
|
@ -2415,7 +2415,9 @@ void BfModule::HandleCaseEnumMatch_Tuple(BfTypedValue tupleVal, const BfSizedArr
|
|||
auto tupleElement = Cast(deferredAssign.mExpr, deferredAssign.mTupleElement, argValue.mType);
|
||||
if (!tupleElement)
|
||||
continue;
|
||||
mBfIRBuilder->CreateStore(tupleElement.mValue, argValue.mValue);
|
||||
tupleElement = LoadValue(tupleElement);
|
||||
if (!tupleElement.mType->IsValuelessType())
|
||||
mBfIRBuilder->CreateStore(tupleElement.mValue, argValue.mValue);
|
||||
}
|
||||
|
||||
if ((clearOutOnMismatch) && (!deferredAssigns.IsEmpty()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue