aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-02-19 11:31:14 +0000
committergingerBill <bill@gingerbill.org>2021-02-19 11:31:14 +0000
commitefdee0dafb2b7568242173cb4549aba32f6f9e75 (patch)
treecd1e66b987699f55f57c3c4f6097f1fb31cf0517 /src/check_stmt.cpp
parentf332cf498d83f4ef2da5ce1493347c1984cbf0d8 (diff)
Remove `bit_field` type from Odin (keyword and dead runtime code still exists)
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 117872848..5e403134e 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -330,17 +330,6 @@ Type *check_assignment_variable(CheckerContext *ctx, Operand *lhs, Operand *rhs)
return nullptr;
case Addressing_Variable:
- if (is_type_bit_field_value(lhs->type)) {
- Type *res = check_assignment_bit_field(ctx, rhs, lhs->type);
- if (res == nullptr) {
- gbString lhs_expr = expr_to_string(lhs->expr);
- gbString rhs_expr = expr_to_string(rhs->expr);
- error(rhs->expr, "Cannot assign '%s' to bit field '%s'", rhs_expr, lhs_expr);
- gb_string_free(rhs_expr);
- gb_string_free(lhs_expr);
- }
- return res;
- }
break;
case Addressing_MapIndex: {