Memory leak on LLVM 4.0.1


I’m developing a frontend using LLVM 4.0.1 on Linux and noticed that LLVM always leaks memory, even after shutdown: 56 bytes in 2 blocks, according to valgrind.
I’m testing with this minimal program:

#include <llvm/Support/ManagedStatic.h>
int main() { llvm::llvm_shutdown(); return 0; }

Is there anything I’m missing to free the rest of the memory?


Gil Barbosa Reis