[llvm] r198884 - Revert "Disable LeakSanitizer in TableGen binaries, see PR18325"
Alp Toker
alp at nuanti.com
Thu Jan 9 11:40:55 PST 2014
Author: alp
Date: Thu Jan 9 13:40:55 2014
New Revision: 198884
URL: http://llvm.org/viewvc/llvm-project?rev=198884&view=rev
Log:
Revert "Disable LeakSanitizer in TableGen binaries, see PR18325"
To declare or define reserved identifers is undefined behaviour in standard
C++. This needs to be addressed in compiler-rt before it can be used in LLVM.
See the list discussion for details.
This reverts commit r198858.
Modified:
llvm/trunk/utils/TableGen/TableGen.cpp
Modified: llvm/trunk/utils/TableGen/TableGen.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/TableGen.cpp?rev=198884&r1=198883&r2=198884&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/TableGen.cpp (original)
+++ llvm/trunk/utils/TableGen/TableGen.cpp Thu Jan 9 13:40:55 2014
@@ -180,10 +180,3 @@ int main(int argc, char **argv) {
return TableGenMain(argv[0], &LLVMTableGenMain);
}
-
-extern "C" {
-// Disable LeakSanitizer for this binary as it has too many leaks that are not
-// very interesting to fix. __lsan_is_turned_off is explained in
-// compiler-rt/include/sanitizer/lsan_interface.h
-int __lsan_is_turned_off() { return 1; }
-} // extern "C"
More information about the llvm-commits
mailing list