aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-05-12 16:28:22 +0100
committergingerBill <bill@gingerbill.org>2020-05-12 16:28:22 +0100
commit6861ff47bc35438adc1d5c6c8bf698ee78b41591 (patch)
tree8306470676ee50fed947affbf37be2565ef0c904 /src/check_stmt.cpp
parent0ba3b5c0bd5c0c32b92f86683098a929fc143962 (diff)
Replace `entity_of_ident` with `entity_of_node`
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 3266bd780..df6d3685c 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -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) {