MaskRay wrote: You might want to change the `DisableFree` default for library uses so that users don't need to specify `-no-disable-free`.
``` // Clang calls BuryPointer on the internal AST and CodeGen-related elements like TargetMachine. // This will cause memory leaks if `compile` is executed many times. ci->getCodeGenOpts().DisableFree = false; ci->getFrontendOpts().DisableFree = false; ``` https://github.com/llvm/llvm-project/pull/136213 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits