Replace entity_of_ident with entity_of_node

This commit is contained in:
gingerBill
2020-05-12 16:28:22 +01:00
parent 0ba3b5c0bd
commit 6861ff47bc
6 changed files with 33 additions and 45 deletions
+1 -1
View File
@@ -310,7 +310,7 @@ Type *check_assignment_variable(CheckerContext *ctx, Operand *lhs, Operand *rhs)
}
}
Entity *e = entity_of_ident(lhs->expr);
Entity *e = entity_of_node(lhs->expr);
gbString str = expr_to_string(lhs->expr);
if (e != nullptr && e->flags & EntityFlag_Param) {