For Darwin builds, locate tools using xcrun when available.

The make/platform/darwin_bni.mk file already has similar code but we
apparently neglected to add it to the clang_darwin.mk file.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188864 91177308-0d34-0410-b5e6-96231b3b80d8
Add missing ']'.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188927 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Build standalone LSan with -fno-rtti.

Fix issue where C code could not be built with -fsanitize=leak.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189010 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Follow-up to r189010 - do the same in Makefile build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189011 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Add a stress test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189012 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix build when scanf interceptors are enabled, and __isoc99_*scanf are not.

Fixes PR16916.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189015 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Add a regression test for building C code.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189016 91177308-0d34-0410-b5e6-96231b3b80d8
Slightly improve lint checker script and fix a few style issues

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189092 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Extend VAArgTLSOverwrite test.

This test now covers LLVM r189104.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189105 91177308-0d34-0410-b5e6-96231b3b80d8
[dfsan] Integration test for the equal-labels case

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189134 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Handle Die() in StopTheWorld.

Handle calls to Die() from the tracer thread. Fixes a bug where a CHECK
could fail in the tracer thread, resulting in a call to AsanDie. The tracer
thread then exited and the parent process continued execution despite its
address space being in an unusable state.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189216 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Add a fast version of StackDepotGet() for use in LSan.

Add a class that holds a snapshot of the StackDepot optimized for querying by
ID. This allows us to speed up LSan dramatically.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189217 91177308-0d34-0410-b5e6-96231b3b80d8