1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +02:00

Fixed splat lookup error during closure capture

This commit is contained in:
Brian Fiete 2020-06-22 09:38:02 -07:00
parent 6bfd49f3ae
commit 5bdaeadc25

View file

@ -10831,6 +10831,12 @@ BfIRValue BfModule::ExtractSplatValue(BfTypedValue typedValue, int componentIdx,
if (val)
break;
if ((checkMethodState->mClosureState != NULL) && (checkMethodState->mClosureState->mCapturing))
{
BF_ASSERT(mBfIRBuilder->mIgnoreWrites);
return mBfIRBuilder->GetFakeVal();
}
checkMethodState = checkMethodState->mPrevMethodState;
}
}