1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Use lifetime extension for mixin results

This commit is contained in:
Brian Fiete 2022-06-16 07:21:19 -07:00
parent 1639542fed
commit ccb1646990
12 changed files with 105 additions and 44 deletions

View file

@ -1754,6 +1754,14 @@ void BeIRCodeGen::HandleNextCmd()
SetResult(curId, inst);
}
break;
case BfIRCmd_LifetimeSoftEnd:
{
CMD_PARAM(BeValue*, val);
auto inst = mBeModule->AllocInst<BeLifetimeSoftEndInst>();
inst->mPtr = val;
SetResult(curId, inst);
}
break;
case BfIRCmd_LifetimeExtend:
{
CMD_PARAM(BeValue*, val);