Add support for sanitizing TableGen.cpp with ASan/GCC and LSan/LLVM.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Once GCC will grow support for __SANITIZE_LEAK__ (already pending in review) there will be included as a separate revision support for LSan/GCC.
CC: @jakubjelinek
Comment Actions
Interesting - I had tried to add has_feature for lsan to clang in the past and couldn’t get the change accepted. Nice to see it works now :)
Comment Actions
We use it now in the NetBSD public headers [1] and keep __SANITIZE_LEAK__ as our local GCC extension... hopefully the GCC upstream will merge it as diverging from LLVM and from GCC downstream users.. is a cost.
[1] https://github.com/NetBSD/src/commit/e08b61780bb6fece3ba3f58a3dc6991ee831c41e