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:
parent
1639542fed
commit
ccb1646990
12 changed files with 105 additions and 44 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue