Restrict the NetBSD ASan TSD fallback to !ASAN_DYNAMIC
authorKamil Rytarowski <n54@gmx.com>
Wed, 7 Aug 2019 21:56:43 +0000 (21:56 +0000)
committerKamil Rytarowski <n54@gmx.com>
Wed, 7 Aug 2019 21:56:43 +0000 (21:56 +0000)
commit72c940417aa56bbdc08d6f731b22dfa85d32b630
tree0bbdc66f3df4a40eb7d84307ccc1d4724ab8173a
parentc96387fce36bf8807fec1edc9eca18c78f99f455
Restrict the NetBSD ASan TSD fallback to !ASAN_DYNAMIC

The fallback to the alternative implementation of TSD with TLS
is only needed for the static version of ASan for NetBSD.

The same code cannot be reused for the dynamic version of ASan as
TLS breaks and TSD code works.

llvm-svn: 368219
compiler-rt/lib/asan/asan_posix.cpp