[PATCH] D145643: [clang][driver] Add option to manually control -disable-free in cc1

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 13 09:48:00 PDT 2023


aaron.ballman added a comment.

Hmmm, can you explain a bit more about why you need this? By default, Clang (the application) leaks memory on shutdown (why free a whole bunch of memory only to terminate, which frees the memory for you?). So it surprises me that we'd need a *driver* option for this because the driver is how you execute clang itself (rather than using Clang as a library, which is why we have the cc1 option). So, to me, this doesn't feel strongly motivated, but I might be misunderstanding the problem you're trying to solve.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145643/new/

https://reviews.llvm.org/D145643



More information about the cfe-commits mailing list