[llvm] r198858 - Disable LeakSanitizer in TableGen binaries, see PR18325

Alp Toker alp at nuanti.com
Thu Jan 9 03:08:23 PST 2014


On 09/01/2014 09:26, Kostya Serebryany wrote:
> Author: kcc
> Date: Thu Jan  9 03:26:26 2014
> New Revision: 198858
>
> URL: http://llvm.org/viewvc/llvm-project?rev=198858&view=rev
> Log:
> Disable LeakSanitizer in TableGen binaries, see PR18325
>
> 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=198858&r1=198857&r2=198858&view=diff
> ==============================================================================
> --- llvm/trunk/utils/TableGen/TableGen.cpp (original)
> +++ llvm/trunk/utils/TableGen/TableGen.cpp Thu Jan  9 03:26:26 2014
> @@ -180,3 +180,10 @@ 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"

This change also looks incorrect (double-underscore prefixed reserved 
identifier). See discussion on cfe-commits.

Alp.


>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

-- 
http://www.nuanti.com
the browser experts




More information about the llvm-commits mailing list