Browse Source

Correct `lb_gen_map_header` initialization

gingerBill 2 years ago
parent
commit
4d512c2cf6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/llvm_backend_proc.cpp

+ 2 - 0
src/llvm_backend_proc.cpp

@@ -381,6 +381,8 @@ lbProcedure *lb_create_dummy_procedure(lbModule *m, String link_name, Type *type
 		lb_add_proc_attribute_at_index(p, offset+parameter_index, "nocapture");
 	}
 
+	map_init(&p->map_header_cache, heap_allocator(), 0);
+
 	return p;
 }