llvm-6502/unittests
Hans Wennborg 837d6ed3ea Make sys::ThreadLocal<> zero-initialized on non-thread builds (PR18205)
According to the docs, ThreadLocal<>::get() should return NULL
if no object has been set. This patch makes that the case also for non-thread
builds and adds a very basic unit test to check it.

(This was causing PR18205 because PrettyStackTraceHead didn't get zero-
initialized and we'd crash trying to read past the end of that list. We didn't
notice this so much on Linux since we'd crash after printing all the entries,
but on Mac we print into a SmallString, and would crash before printing that.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197718 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-19 20:32:44 +00:00
..
ADT Fix a buffer overrun detected by AddressSanitizer. 2013-12-19 02:35:26 +00:00
Analysis [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 11:13:32 +00:00
Bitcode [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 11:13:32 +00:00
CodeGen [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 11:13:32 +00:00
DebugInfo [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 11:13:32 +00:00
ExecutionEngine Remove some dead code 2013-12-12 11:18:08 +00:00
IR Use a: and s: instead of a0: and s0: in the DataLayout strings. 2013-12-13 18:56:34 +00:00
MC Fix MCDataAtom never calling remap when adding data. 2013-10-16 18:26:16 +00:00
Object [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 11:13:32 +00:00
Option [CMake] Also OptionTests can be free from add_dependencies() with add_public_tablegen_target(). 2013-11-28 17:04:13 +00:00
Support Make sys::ThreadLocal<> zero-initialized on non-thread builds (PR18205) 2013-12-19 20:32:44 +00:00
Transforms [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 11:13:32 +00:00
CMakeLists.txt No point in having a "#if 0"ed unittest. 2013-12-19 03:44:13 +00:00
Makefile Introduce clean-ups in llvm/unittests/Makefile.unittest, to sweep stray *Tests. 2013-12-19 07:09:28 +00:00
Makefile.unittest Introduce clean-ups in llvm/unittests/Makefile.unittest, to sweep stray *Tests. 2013-12-19 07:09:28 +00:00