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:
parent
6bfd49f3ae
commit
5bdaeadc25
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue