mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Remove unused hint
This commit is contained in:
@@ -7333,15 +7333,11 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type
|
|||||||
case_end;
|
case_end;
|
||||||
|
|
||||||
case_ast_node(ue, UnaryExpr, node);
|
case_ast_node(ue, UnaryExpr, node);
|
||||||
Ast *prev_unary_address_hint = c->unary_address_hint;
|
|
||||||
c->unary_address_hint = unparen_expr(node);
|
|
||||||
|
|
||||||
Type *th = type_hint;
|
Type *th = type_hint;
|
||||||
if (ue->op.kind == Token_And) {
|
if (ue->op.kind == Token_And) {
|
||||||
th = type_deref(th);
|
th = type_deref(th);
|
||||||
}
|
}
|
||||||
check_expr_base(c, o, ue->expr, th);
|
check_expr_base(c, o, ue->expr, th);
|
||||||
c->unary_address_hint = prev_unary_address_hint;
|
|
||||||
node->viral_state_flags |= ue->expr->viral_state_flags;
|
node->viral_state_flags |= ue->expr->viral_state_flags;
|
||||||
|
|
||||||
if (o->mode == Addressing_Invalid) {
|
if (o->mode == Addressing_Invalid) {
|
||||||
|
|||||||
@@ -335,7 +335,6 @@ struct CheckerContext {
|
|||||||
Scope * polymorphic_scope;
|
Scope * polymorphic_scope;
|
||||||
|
|
||||||
Ast *assignment_lhs_hint;
|
Ast *assignment_lhs_hint;
|
||||||
Ast *unary_address_hint;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Checker {
|
struct Checker {
|
||||||
|
|||||||
Reference in New Issue
Block a user