mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed opaque ref cast to base type
This commit is contained in:
parent
9d533f865f
commit
bc0e2b1be2
1 changed files with 1 additions and 1 deletions
|
@ -13419,7 +13419,7 @@ BfIRValue BfModule::CastToValue(BfAstNode* srcNode, BfTypedValue typedVal, BfTyp
|
||||||
{
|
{
|
||||||
if (TypeIsSubTypeOf(fromInner->ToTypeInstance(), toInner->ToTypeInstance()))
|
if (TypeIsSubTypeOf(fromInner->ToTypeInstance(), toInner->ToTypeInstance()))
|
||||||
{
|
{
|
||||||
if (toInner->IsValuelessType())
|
if (toInner->IsValuelessNonOpaqueType())
|
||||||
return mBfIRBuilder->GetFakeVal();
|
return mBfIRBuilder->GetFakeVal();
|
||||||
// Is this valid?
|
// Is this valid?
|
||||||
typedVal = MakeAddressable(typedVal);
|
typedVal = MakeAddressable(typedVal);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue