aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_opt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-11-05 16:43:53 +0000
committergingerBill <bill@gingerbill.org>2021-11-05 16:43:53 +0000
commit6be104e5215668aad05c68cb26e1dd9fe898fc11 (patch)
tree4ce49d00d4503610ee135a12c779053d60123b36 /src/llvm_backend_opt.cpp
parente95204908a12d4386ba9bda6de1fed7c73f66d29 (diff)
Make llvm backend code use `PtrMap`; remove dead code
Diffstat (limited to 'src/llvm_backend_opt.cpp')
-rw-r--r--src/llvm_backend_opt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_backend_opt.cpp b/src/llvm_backend_opt.cpp
index 2648863e2..13ce13aa5 100644
--- a/src/llvm_backend_opt.cpp
+++ b/src/llvm_backend_opt.cpp
@@ -387,7 +387,7 @@ void lb_run_remove_unused_function_pass(lbModule *m) {
continue;
}
- Entity **found = map_get(&m->procedure_values, hash_pointer(curr_func));
+ Entity **found = map_get(&m->procedure_values, curr_func);
if (found && *found) {
Entity *e = *found;
bool is_required = (e->flags & EntityFlag_Require) == EntityFlag_Require;