mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +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
|
@ -3611,6 +3611,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())
|
||||||
{
|
{
|
||||||
|
@ -3745,8 +3748,8 @@ BfIRValue CeContext::CreateConstant(BfModule* module, uint8* ptr, BfType* bfType
|
||||||
if (!result)
|
if (!result)
|
||||||
return BfIRValue();
|
return BfIRValue();
|
||||||
fieldVals.Add(result);
|
fieldVals.Add(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeInst->mIsUnion)
|
if (typeInst->mIsUnion)
|
||||||
{
|
{
|
||||||
auto unionInnerType = typeInst->GetUnionInnerType();
|
auto unionInnerType = typeInst->GetUnionInnerType();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue