mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28: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)
|
||||
{
|
||||
mBfIRBuilder->PopulateType(val.mType);
|
||||
if (!val.mType->IsValuelessType())
|
||||
mBfIRBuilder->CreateSetRet(val.mValue, val.mType->mTypeId);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue