aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-09 10:08:17 +0100
committergingerBill <bill@gingerbill.org>2018-06-09 10:08:17 +0100
commit49ea9ed7226b68cde2eeea3984d61098df9f22e3 (patch)
treec6c101d298e02f3c0118ccd3dbe1bd1e8bc35953 /src/types.cpp
parentd7108416c9abca6bd9ebd45ad54c3b3af6829345 (diff)
Entity aliasing clean up
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 7a40f9bff..13e069a15 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -1595,7 +1595,7 @@ Selection lookup_field_from_index(Type *type, i64 index) {
}
-Entity *current_scope_lookup_entity(Scope *s, String name);
+Entity *scope_lookup_current(Scope *s, String name);
Selection lookup_field_with_selection(Type *type_, String field_name, bool is_type, Selection sel) {
GB_ASSERT(type_ != nullptr);
@@ -1712,7 +1712,7 @@ Selection lookup_field_with_selection(Type *type_, String field_name, bool is_ty
if (type->kind == Type_Struct) {
Scope *s = type->Struct.scope;
if (s != nullptr) {
- Entity *found = current_scope_lookup_entity(s, field_name);
+ Entity *found = scope_lookup_current(s, field_name);
if (found != nullptr && found->kind != Entity_Variable) {
sel.entity = found;
return sel;