mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Comptime EmitReturn PopulateType fix
This commit is contained in:
parent
3c276968b3
commit
81aaefff0c
1 changed files with 1 additions and 0 deletions
|
@ -17210,6 +17210,7 @@ void BfModule::EmitReturn(const BfTypedValue& val)
|
||||||
}
|
}
|
||||||
else if (mIsComptimeModule)
|
else if (mIsComptimeModule)
|
||||||
{
|
{
|
||||||
|
mBfIRBuilder->PopulateType(val.mType);
|
||||||
if (!val.mType->IsValuelessType())
|
if (!val.mType->IsValuelessType())
|
||||||
mBfIRBuilder->CreateSetRet(val.mValue, val.mType->mTypeId);
|
mBfIRBuilder->CreateSetRet(val.mValue, val.mType->mTypeId);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue