aboutsummaryrefslogtreecommitdiff
path: root/src/ir.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/ir.cpp
parentd7108416c9abca6bd9ebd45ad54c3b3af6829345 (diff)
Entity aliasing clean up
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 5f0e90653..a2bb9808d 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -1706,7 +1706,7 @@ irValue *ir_emit_runtime_call(irProcedure *proc, char const *name_, Array<irValu
String name = make_string_c(cast(char *)name_);
AstPackage *p = proc->module->info->runtime_package;
- Entity *e = current_scope_lookup_entity(p->scope, name);
+ Entity *e = scope_lookup_current(p->scope, name);
irValue **found = map_get(&proc->module->values, hash_entity(e));
GB_ASSERT_MSG(found != nullptr, "%.*s", LIT(name));
irValue *gp = *found;
@@ -1719,7 +1719,7 @@ irValue *ir_emit_package_call(irProcedure *proc, char const *package_name_, char
String package_name = make_string_c(cast(char *)package_name_);
AstPackage *p = get_core_package(proc->module->info, package_name);
- Entity *e = current_scope_lookup_entity(p->scope, name);
+ Entity *e = scope_lookup_current(p->scope, name);
irValue **found = map_get(&proc->module->values, hash_entity(e));
GB_ASSERT_MSG(found != nullptr, "%.*s", LIT(name));
irValue *gp = *found;
@@ -4089,7 +4089,7 @@ irValue *ir_emit_clamp(irProcedure *proc, Type *t, irValue *x, irValue *min, irV
irValue *ir_find_global_variable(irProcedure *proc, String name) {
AstPackage *pkg = proc->module->info->runtime_package;
- Entity *e = current_scope_lookup_entity(pkg->scope, name);
+ Entity *e = scope_lookup_current(pkg->scope, name);
irValue **value = map_get(&proc->module->values, hash_entity(e));
GB_ASSERT_MSG(value != nullptr, "Unable to find global variable '%.*s'", LIT(name));
return *value;