1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Fixed enums in debugger, reformatting of operator constraints

This commit is contained in:
Brian Fiete 2019-11-22 12:28:24 -08:00
parent 533ef0856b
commit 7b8251c311
11 changed files with 65 additions and 22 deletions

View file

@ -7895,7 +7895,7 @@ BfIRValue BfModule::CastToValue(BfAstNode* srcNode, BfTypedValue typedVal, BfTyp
}
// * -> Valueless
if (toType->IsValuelessType())
if (toType->IsVoid())
return mBfIRBuilder->GetFakeVal();
// void* -> intptr
@ -9284,10 +9284,10 @@ BfTypedValue BfModule::Cast(BfAstNode* srcNode, const BfTypedValue& typedVal, Bf
}
}
if ((explicitCast) && (toType->IsValuelessType()))
/*if ((explicitCast) && (toType->IsValuelessType()))
{
return BfTypedValue(mBfIRBuilder->GetFakeVal(), toType);
}
}*/
BfCastResultFlags castResultFlags = BfCastResultFlags_None;
auto castedValue = CastToValue(srcNode, typedVal, toType, castFlags, &castResultFlags);