mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Improved generic constraint const conversion handling
This commit is contained in:
parent
c750ed076c
commit
e5c4321440
4 changed files with 35 additions and 3 deletions
|
@ -4409,6 +4409,9 @@ BfIRValue CeContext::CreateConstant(BfModule* module, uint8* ptr, BfType* bfType
|
|||
if (bfType->IsTypedPrimitive())
|
||||
return CreateConstant(module, ptr, bfType->GetUnderlyingType(), outType);
|
||||
|
||||
if (bfType->IsGenericParam())
|
||||
return irBuilder->GetUndefConstValue(irBuilder->MapType(bfType));
|
||||
|
||||
if (bfType->IsTypeInstance())
|
||||
{
|
||||
auto typeInst = bfType->ToTypeInstance();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue