llvm-6502/unittests/Support
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
..
AlignOfTest.cpp
AllocatorTest.cpp
ArrayRecyclerTest.cpp
BlockFrequencyTest.cpp [block-freq] Add a right shift to BlockFrequency that saturates at 1. 2013-12-14 02:24:22 +00:00
Casting.cpp
CMakeLists.txt Make sys::ThreadLocal<> zero-initialized on non-thread builds (PR18205) 2013-12-19 20:32:44 +00:00
CommandLineTest.cpp
CompressionTest.cpp
ConstantRangeTest.cpp make ConstantRange::signExtend() optimal 2013-10-30 15:36:50 +00:00
ConvertUTFTest.cpp
DataExtractorTest.cpp
EndianTest.cpp
ErrorOrTest.cpp Simplify ErrorOr. 2013-11-05 00:28:01 +00:00
FileOutputBufferTest.cpp
formatted_raw_ostream_test.cpp
LeakDetectorTest.cpp
LockFileManagerTest.cpp
Makefile
ManagedStatic.cpp
MathExtrasTest.cpp
MD5Test.cpp
MemoryBufferTest.cpp Change MemoryBuffer::getFile to take a Twine. 2013-10-25 19:06:52 +00:00
MemoryTest.cpp
Path.cpp Path: Recognize COFF import library file magic. 2013-11-15 21:22:02 +00:00
ProcessTest.cpp
ProgramTest.cpp
raw_ostream_test.cpp
RegexTest.cpp Swap around EXPECT_EQ() arguments orders for more natural gtest Failure messages 2013-12-12 03:31:20 +00:00
SourceMgrTest.cpp
SwapByteOrderTest.cpp
ThreadLocalTest.cpp Make sys::ThreadLocal<> zero-initialized on non-thread builds (PR18205) 2013-12-19 20:32:44 +00:00
TimeValueTest.cpp
UnicodeTest.cpp
ValueHandleTest.cpp
YAMLIOTest.cpp YAML I/O add support for validate() 2013-11-21 00:28:07 +00:00
YAMLParserTest.cpp