1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Boxed struct ptr changes.

This commit is contained in:
Brian Fiete 2019-10-09 16:16:01 -07:00
parent ad2542eba6
commit 5af6428bf4
20 changed files with 573 additions and 327 deletions

View file

@ -1357,13 +1357,12 @@ void BeIRCodeGen::HandleNextCmd()
{
CMD_PARAM(BeValue*, val);
CMD_PARAM(int, idx);
BF_ASSERT(val->GetType()->IsComposite());
auto extractValueInst = mBeModule->AllocInst<BeExtractValueInst>();
extractValueInst->mAggVal = val;
extractValueInst->mIdx = idx;
BF_ASSERT(val->GetType()->IsComposite());
extractValueInst->mIdx = idx;
SetResult(curId, extractValueInst);
}
break;