1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Made paths with NoReturn calls mark variables as assigned

This commit is contained in:
Brian Fiete 2022-02-14 07:25:20 -05:00
parent 502c46dc2f
commit 8d0a415eb7
3 changed files with 7 additions and 5 deletions

View file

@ -5605,6 +5605,7 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, BfMethodInstance*
{
mModule->mCurMethodState->SetHadReturn(true);
mModule->mCurMethodState->mLeftBlockUncond = true;
mModule->MarkScopeLeft(&mModule->mCurMethodState->mHeadScope, true);
}
if (mModule->mCurTypeInstance != NULL)