diff --git a/src/compiler/llvm_codegen.c b/src/compiler/llvm_codegen.c index b24187bde..1ef698c0c 100644 --- a/src/compiler/llvm_codegen.c +++ b/src/compiler/llvm_codegen.c @@ -82,7 +82,6 @@ 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);