mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed tuple cast
This commit is contained in:
parent
71087af6d3
commit
16bc8de229
2 changed files with 2 additions and 24 deletions
|
@ -8859,9 +8859,8 @@ BfIRValue BfModule::CastToValue(BfAstNode* srcNode, BfTypedValue typedVal, BfTyp
|
|||
}
|
||||
if (matches)
|
||||
{
|
||||
typedVal = MakeAddressable(typedVal);
|
||||
if (resultFlags != NULL)
|
||||
*resultFlags = (BfCastResultFlags)(BfCastResultFlags_IsAddr);
|
||||
// This is either a ref or a ptr so we don't need to set the "IsAddr" flag
|
||||
typedVal = MakeAddressable(typedVal);
|
||||
return mBfIRBuilder->CreateBitCast(typedVal.mValue, mBfIRBuilder->MapType(toType));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue