mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-26 07:25:00 -07:00
Always call lb_run_remove_dead_instruction_pass to fix -debug issues
This commit is contained in:
@@ -3004,8 +3004,9 @@ gb_internal lbAddr lb_add_local(lbProcedure *p, Type *type, Entity *e, bool zero
|
||||
LLVMPositionBuilderAtEnd(p->builder, p->decl_block->block);
|
||||
|
||||
char const *name = "";
|
||||
if (e != nullptr) {
|
||||
// name = alloc_cstring(permanent_allocator(), e->token.string);
|
||||
if (e != nullptr && e->token.string.len > 0 && e->token.string != "_") {
|
||||
// NOTE(bill): for debugging purposes only
|
||||
name = alloc_cstring(permanent_allocator(), e->token.string);
|
||||
}
|
||||
|
||||
LLVMTypeRef llvm_type = lb_type(p->module, type);
|
||||
|
||||
Reference in New Issue
Block a user