aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 8eeab55ab..b4cb91025 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -393,7 +393,6 @@ struct TypeAndToken {
};
void check_when_stmt(Checker *c, AstNodeWhenStmt *ws, u32 flags) {
- flags &= ~Stmt_CheckScopeDecls;
Operand operand = {Addressing_Invalid};
check_expr(c, &operand, ws->cond);
if (operand.mode != Addressing_Constant || !is_type_boolean(operand.type)) {