mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Create exit block for dtor
This commit is contained in:
parent
ac8d5cf014
commit
88bd74644e
1 changed files with 3 additions and 0 deletions
|
@ -15759,6 +15759,9 @@ void BfModule::CreateStaticCtor()
|
|||
|
||||
void BfModule::EmitDtorBody()
|
||||
{
|
||||
if (!mCurMethodState->mIRExitBlock)
|
||||
mCurMethodState->mIRExitBlock = mBfIRBuilder->CreateBlock("exit", true);
|
||||
|
||||
if (mCurTypeInstance->IsClosure())
|
||||
{
|
||||
BfFieldInstance* fieldInstance = &mCurTypeInstance->mFieldInstances.back();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue