diff options
| author | gingerBill <bill@gingerbill.org> | 2020-03-15 14:31:26 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-03-15 14:31:26 +0000 |
| commit | 18fb6a4be41f30de75b445266b958e153ecc16d9 (patch) | |
| tree | 6770795d754effc1751d8c7beb13652db39f3770 /src/check_stmt.cpp | |
| parent | bf0c6f5a30e406a0e0f73014c024ba63dcb47b43 (diff) | |
| parent | 8dba0e332c73a08301c5ac6c0d310c483c66cb11 (diff) | |
Merge branch 'master' into llvm-integration
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 4b250c6a6..67172d951 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1692,12 +1692,12 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { switch (token.kind) { case Token_break: if ((flags & Stmt_BreakAllowed) == 0 && bs->label == nullptr) { - error(token, "'break' only allowed in loops or 'switch' statements"); + error(token, "'break' only allowed in non-inline loops or 'switch' statements"); } break; case Token_continue: if ((flags & Stmt_ContinueAllowed) == 0 && bs->label == nullptr) { - error(token, "'continue' only allowed in loops"); + error(token, "'continue' only allowed in non-inline loops"); } break; case Token_fallthrough: |