Remove dead code

This commit is contained in:
gingerBill
2019-01-24 15:52:51 +00:00
parent db2eff6847
commit 345e790f52
5 changed files with 6 additions and 41 deletions
+1 -2
View File
@@ -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");
}
}