1
0
Fork 0
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:
Brian Fiete 2022-09-05 05:34:24 -07:00
parent 2b7d0284f7
commit c65fd5711d
5 changed files with 60 additions and 23 deletions

View file

@ -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);