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