mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-24 18:48:01 +02:00
Clear variable declarations inside deferredParamValues (ie skipCall)
This commit is contained in:
parent
2b7d0284f7
commit
c65fd5711d
5 changed files with 60 additions and 23 deletions
|
@ -3893,7 +3893,7 @@ void BfModule::DoIfStatement(BfIfStatement* ifStmt, bool includeTrueStmt, bool i
|
|||
// We restore the scopeData before the False block because we don't want variables created in the if condition to
|
||||
// be visible in the false section
|
||||
//RestoreScopeState();
|
||||
RestoreScoreState_LocalVariables();
|
||||
RestoreScoreState_LocalVariables(mCurMethodState->mCurScope->mLocalVarStart);
|
||||
|
||||
if ((!mCurMethodState->mLeftBlockUncond) && (!ignoredLastBlock))
|
||||
mBfIRBuilder->CreateBr_NoCollapse(contBB);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue