1
0
Fork 0
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:
Brian Fiete 2025-05-17 11:27:03 +02:00
parent 3c276968b3
commit 81aaefff0c

View file

@ -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