1
0
Fork 0
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:
Brian Fiete 2020-06-25 05:20:45 -07:00
parent 71087af6d3
commit 16bc8de229
2 changed files with 2 additions and 24 deletions

View file

@ -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));
}
}