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.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 4a98db600..4a7c6c621 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -167,10 +167,6 @@ bool check_is_terminating(Ast *node) {
}
return has_default;
case_end;
-
- case_ast_node(pc, PushContext, node);
- return check_is_terminating(pc->body);
- case_end;
}
return false;
@@ -306,6 +302,10 @@ Type *check_assignment_variable(CheckerContext *ctx, Operand *lhs, Operand *rhs)
break;
}
+ case Addressing_Context: {
+ break;
+ }
+
default: {
if (lhs->expr->kind == Ast_SelectorExpr) {
// NOTE(bill): Extra error checks
@@ -1597,13 +1597,6 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) {
}
case_end;
- case_ast_node(pa, PushContext, node);
- Operand op = {};
- check_expr(ctx, &op, pa->expr);
- check_assignment(ctx, &op, t_context, str_lit("argument to context <-"));
- check_stmt(ctx, pa->body, mod_flags);
- case_end;
-
case_ast_node(fb, ForeignBlockDecl, node);
Ast *foreign_library = fb->foreign_library;
CheckerContext c = *ctx;