mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed cast
This commit is contained in:
parent
1c6c06fa4d
commit
79149d6a7c
1 changed files with 3 additions and 1 deletions
|
@ -8082,6 +8082,8 @@ BfIRValue BfModule::CastToValue(BfAstNode* srcNode, BfTypedValue typedVal, BfTyp
|
|||
if (ignoreWrites)
|
||||
return mBfIRBuilder->GetFakeVal();
|
||||
|
||||
if (resultFlags != NULL)
|
||||
*resultFlags = (BfCastResultFlags)(BfCastResultFlags_IsAddr);
|
||||
typedVal = MakeAddressable(typedVal);
|
||||
return mBfIRBuilder->CreateBitCast(typedVal.mValue, mBfIRBuilder->MapTypeInstPtr(toTypeInstance));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue