diff options
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 72c6f5487..54226e565 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -190,7 +190,6 @@ Type *check_assignment_variable(Checker *c, Operand *lhs, Operand *rhs) { // NOTE(bill): Ignore assignments to '_' if (is_blank_ident(node)) { - add_entity_definition(&c->info, node, nullptr); check_assignment(c, rhs, nullptr, str_lit("assignment to '_' identifier")); if (rhs->mode == Addressing_Invalid) { return nullptr; @@ -269,8 +268,7 @@ Type *check_assignment_variable(Checker *c, Operand *lhs, Operand *rhs) { } i64 imax = 1ll << (cast(i64)lhs_bits-1ll); - bool ok = false; - ok = !(u < 0 || u > umax); + bool ok = !(u < 0 || u > umax); if (ok) { return rhs->type; |