Dispose of the LLVMModule

This commit is contained in:
Christoffer Lerno
2025-02-20 22:36:00 +01:00
parent bb8c03777d
commit a2bfeb156d

View File

@@ -82,6 +82,7 @@ static void gencontext_destroy(GenContext *context)
{
ASSERT(llvm_is_global_eval(context));
LLVMDisposeBuilder(context->global_builder);
LLVMDisposeModule(context->module);
if (!context->shared_context) LLVMContextDispose(context->context);
LLVMDisposeTargetData(context->target_data);
LLVMDisposeTargetMachine(context->machine);