aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-18 18:58:41 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-18 18:58:41 +0100
commit65f079ebc474f9decc7afb222630c04b4da32690 (patch)
tree789058f2ed95b8cf4433445f169435af1cc6707c /src/check_expr.cpp
parentd16aa794921efd3c8e752645f3e5f922abc3aee8 (diff)
Remove `atomic`, `++`, and `--`
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 15bdf2751..cdbeba913 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -1711,11 +1711,6 @@ bool is_polymorphic_type_assignable(Checker *c, Type *poly, Type *source, bool c
return is_polymorphic_type_assignable(c, poly->Pointer.elem, source->Pointer.elem, true, modify_type);
}
return false;
- case Type_Atomic:
- if (source->kind == Type_Atomic) {
- return is_polymorphic_type_assignable(c, poly->Atomic.elem, source->Atomic.elem, true, modify_type);
- }
- return false;
case Type_Array:
if (source->kind == Type_Array &&
poly->Array.count == source->Array.count) {
@@ -2942,13 +2937,6 @@ bool check_type_internal(Checker *c, AstNode *e, Type **type, Type *named_type)
return true;
case_end;
- case_ast_node(at, AtomicType, e);
- Type *elem = check_type(c, at->type);
- i64 esz = type_size_of(c->allocator, elem);
- *type = make_type_atomic(c->allocator, elem);
- return true;
- case_end;
-
case_ast_node(at, ArrayType, e);
if (at->count != nullptr) {
Type *elem = check_type(c, at->elem, nullptr);
@@ -8399,11 +8387,6 @@ gbString write_expr_to_string(gbString str, AstNode *node) {
}
str = gb_string_appendc(str, "}");
case_end;
-
- case_ast_node(at, AtomicType, node);
- str = gb_string_appendc(str, "atomic ");
- str = write_expr_to_string(str, at->type);
- case_end;
}
return str;