mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 21:34:11 +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);
|
auto tupleElement = Cast(deferredAssign.mExpr, deferredAssign.mTupleElement, argValue.mType);
|
||||||
if (!tupleElement)
|
if (!tupleElement)
|
||||||
continue;
|
continue;
|
||||||
mBfIRBuilder->CreateStore(tupleElement.mValue, argValue.mValue);
|
tupleElement = LoadValue(tupleElement);
|
||||||
|
if (!tupleElement.mType->IsValuelessType())
|
||||||
|
mBfIRBuilder->CreateStore(tupleElement.mValue, argValue.mValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((clearOutOnMismatch) && (!deferredAssigns.IsEmpty()))
|
if ((clearOutOnMismatch) && (!deferredAssigns.IsEmpty()))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue