search for: llvm_types_cleanup

Displaying 1 result from an estimated 1 matches for "llvm_types_cleanup".

2008 Oct 03
0
[LLVMdev] memory leaks in *Type::get() and Constant*::get()
...opt.cpp:432) The problem here is that these methods add newly created types/constants to a static variable, which is managed by the ManagedStatic template. This template effectively deletes the map, but does not frees the Types*. I made a quick&dirty patch (http://web.ist.utl.pt/nuno.lopes/llvm_types_cleanup.txt), but it doesn't seem to fix the problem (it makes llvm crash), since it seems there are some statically allocated Types. Any ideas on how to kill these memleaks? Nuno