Open
Description
llvm-c/Core.h
says the following:
/**
* Create a new, empty module in a specific context.
*
* Every invocation should be paired with LLVMDisposeModule() or memory
* will be leaked.
*/
LLVMModuleRef LLVMModuleCreateWithNameInContext(const char *ModuleID,
LLVMContextRef C);
However, there is neither LLVM::Module#finalize
nor a binding for LLVMDisposeModule
, so there will be a memory leak every time LLVM::Context#new_module
is called. This could pose a problem in some use cases (maybe the playground).