diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-07 21:23:37 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-07 21:23:37 +0100 |
| commit | d3865633441f0e22626142a0f9fbfde0e9c2ef19 (patch) | |
| tree | cf86edfa3cc00486475b00cb0b904041fe86cacf /src/llvm_backend_proc.cpp | |
| parent | 9ecc2ab15b161cea506b93e7f5607cf13dbb21f5 (diff) | |
Correct issue with the generated `map` type internals; Simplify map rehash logic to utilize `resize`
Diffstat (limited to 'src/llvm_backend_proc.cpp')
| -rw-r--r-- | src/llvm_backend_proc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/llvm_backend_proc.cpp b/src/llvm_backend_proc.cpp index 792cf31a7..222161164 100644 --- a/src/llvm_backend_proc.cpp +++ b/src/llvm_backend_proc.cpp @@ -239,8 +239,11 @@ lbProcedure *lb_create_procedure(lbModule *m, Entity *entity, bool ignore_body) } if (p->body != nullptr) { + // String debug_name = entity->token.string.text; + String debug_name = p->name; + p->debug_info = LLVMDIBuilderCreateFunction(m->debug_builder, scope, - cast(char const *)entity->token.string.text, entity->token.string.len, + cast(char const *)debug_name.text, debug_name.len, cast(char const *)p->name.text, p->name.len, file, line, type, is_local_to_unit, is_definition, |