mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed tuple actualization issue in Cast
This commit is contained in:
parent
67f8e45c55
commit
64f3cf9799
1 changed files with 1 additions and 0 deletions
|
@ -15130,6 +15130,7 @@ BfTypedValue BfModule::Cast(BfAstNode* srcNode, const BfTypedValue& typedVal, Bf
|
|||
|
||||
BfIRValue curTupleValue = CreateAlloca(tupleType);
|
||||
auto loadedVal = LoadValue(typedVal);
|
||||
FixValueActualization(loadedVal);
|
||||
mBfIRBuilder->CreateStore(loadedVal.mValue, mBfIRBuilder->CreateBitCast(curTupleValue, mBfIRBuilder->MapTypeInstPtr(fromTupleType)));
|
||||
return BfTypedValue(curTupleValue, tupleType, BfTypedValueKind_TempAddr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue