diff options
| author | gingerBill <bill@gingerbill.org> | 2021-11-05 16:43:53 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-11-05 16:43:53 +0000 |
| commit | 6be104e5215668aad05c68cb26e1dd9fe898fc11 (patch) | |
| tree | 4ce49d00d4503610ee135a12c779053d60123b36 /src/llvm_backend_opt.cpp | |
| parent | e95204908a12d4386ba9bda6de1fed7c73f66d29 (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.cpp | 2 |
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; |