aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-02 15:40:25 +0000
committergingerBill <bill@gingerbill.org>2023-01-02 15:40:25 +0000
commitfa562ec5d60319f5cd7e85bb337bd21feb7ceeb8 (patch)
tree00e7f2148c79fe226298821e522874fbc5b1e0b4 /src/llvm_backend_expr.cpp
parent529383f5b17d74f66bebb8679820a69476635b6a (diff)
Remove unneeded `local_entity_map`
Diffstat (limited to 'src/llvm_backend_expr.cpp')
-rw-r--r--src/llvm_backend_expr.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp
index 28a68b065..d574caf4c 100644
--- a/src/llvm_backend_expr.cpp
+++ b/src/llvm_backend_expr.cpp
@@ -3404,11 +3404,7 @@ gb_internal lbAddr lb_build_addr_from_entity(lbProcedure *p, Entity *e, Ast *exp
lbValue v = {};
- lbValue *found = nullptr;
- found = map_get(&p->local_entity_map, e);
- if (found == nullptr) {
- found = map_get(&p->module->values, e);
- }
+ lbValue *found = map_get(&p->module->values, e);
if (found) {
v = *found;
} else if (e->kind == Entity_Variable && e->flags & EntityFlag_Using) {