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:
parent
533ef0856b
commit
7b8251c311
11 changed files with 65 additions and 22 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue