1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +02:00

Fixed typed primitive comptime encoding

This commit is contained in:
Brian Fiete 2021-07-22 10:49:17 -07:00
parent 288b99cc3c
commit d86eb0625c

View file

@ -3612,6 +3612,9 @@ BfIRValue CeContext::CreateConstant(BfModule* module, uint8* ptr, BfType* bfType
return BfIRValue();
}
if (bfType->IsTypedPrimitive())
return CreateConstant(module, ptr, bfType->GetUnderlyingType(), outType);
if (bfType->IsTypeInstance())
{
auto typeInst = bfType->ToTypeInstance();