mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Deferred call fix for 'do' statement
This commit is contained in:
parent
1e8d2ca6e8
commit
91e0d10128
1 changed files with 4 additions and 3 deletions
|
@ -5267,15 +5267,16 @@ void BfModule::Visit(BfDoStatement* doStmt)
|
|||
mBfIRBuilder->CreateBr(bodyBB);
|
||||
mBfIRBuilder->SetInsertPoint(bodyBB);
|
||||
VisitEmbeddedStatement(doStmt->mEmbeddedStatement);
|
||||
|
||||
RestoreScopeState();
|
||||
|
||||
if (!mCurMethodState->mLeftBlockUncond)
|
||||
mBfIRBuilder->CreateBr(endBB);
|
||||
mCurMethodState->SetHadReturn(false);
|
||||
mCurMethodState->mLeftBlockUncond = false;
|
||||
|
||||
mBfIRBuilder->AddBlock(endBB);
|
||||
mBfIRBuilder->SetInsertPoint(endBB);
|
||||
|
||||
RestoreScopeState();
|
||||
mBfIRBuilder->SetInsertPoint(endBB);
|
||||
}
|
||||
|
||||
void BfModule::Visit(BfRepeatStatement* repeatStmt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue