mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Dispose of the LLVMModule
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user