aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-01-24 15:52:51 +0000
committergingerBill <bill@gingerbill.org>2019-01-24 15:52:51 +0000
commit345e790f52c546b704187b0e408825fb5a271f25 (patch)
tree28da6d8a30b776eb0d8e20e2bf37c73403c32aff /src/check_stmt.cpp
parentdb2eff6847d61fb0c2f97f5b43e84300dc8865c8 (diff)
Remove dead code
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 2a3d81642..5b30ebee3 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -1283,8 +1283,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) {
if (fs->post != nullptr) {
check_stmt(ctx, fs->post, 0);
- if (fs->post->kind != Ast_AssignStmt &&
- fs->post->kind != Ast_IncDecStmt) {
+ if (fs->post->kind != Ast_AssignStmt) {
error(fs->post, "'for' statement post statement must be a simple statement");
}
}