mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed typed primitive comptime encoding
This commit is contained in:
parent
288b99cc3c
commit
d86eb0625c
1 changed files with 5 additions and 2 deletions
|
@ -3612,6 +3612,9 @@ BfIRValue CeContext::CreateConstant(BfModule* module, uint8* ptr, BfType* bfType
|
||||||
return BfIRValue();
|
return BfIRValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (bfType->IsTypedPrimitive())
|
||||||
|
return CreateConstant(module, ptr, bfType->GetUnderlyingType(), outType);
|
||||||
|
|
||||||
if (bfType->IsTypeInstance())
|
if (bfType->IsTypeInstance())
|
||||||
{
|
{
|
||||||
auto typeInst = bfType->ToTypeInstance();
|
auto typeInst = bfType->ToTypeInstance();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue