diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index 364633cc..7b888eb6 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -16293,6 +16293,7 @@ BfScopeData* BfModule::FindScope(BfAstNode* scopeName, BfMixinState* fromMixinSt if (!inMixinDecl) Fail(StrFormat("Unable to locate label '%s'", findLabel.c_str()), scopeName); + return NULL; } if (auto scopeNode = BfNodeDynCast(scopeName)) diff --git a/IDEHelper/Compiler/BfStmtEvaluator.cpp b/IDEHelper/Compiler/BfStmtEvaluator.cpp index c7c0eb43..d4af5cd5 100644 --- a/IDEHelper/Compiler/BfStmtEvaluator.cpp +++ b/IDEHelper/Compiler/BfStmtEvaluator.cpp @@ -5608,7 +5608,7 @@ void BfModule::Visit(BfContinueStatement* continueStmt) breakData = FindBreakData(continueStmt->mLabel); if ((breakData != NULL) && (!breakData->mIRContinueBlock)) { - Fail(StrFormat("'continue' not applicable in '%s", continueStmt->mLabel->ToString().c_str()), continueStmt); + Fail(StrFormat("'continue' not applicable in '%s'", continueStmt->mLabel->ToString().c_str()), continueStmt); return; } }