Fix bug 20125 - clang-format segfaults on bad config.
[oota-llvm.git] / lib / Support / Unix / ThreadLocal.inc
index f009b72f1059b55addbbde561e2d4b5dd1764742..f14d0fa3d522e3b592525968f73bb12b7f1e66ee 100644 (file)
@@ -1,4 +1,4 @@
-//=== llvm/System/Unix/ThreadLocal.inc - Unix Thread Local Data -*- C++ -*-===//
+//=== llvm/Support/Unix/ThreadLocal.inc - Unix Thread Local Data -*- C++ -*-===//
 //
 //                     The LLVM Compiler Infrastructure
 //
@@ -18,7 +18,7 @@
 
 namespace llvm {
 using namespace sys;
-ThreadLocalImpl::ThreadLocalImpl() { }
+ThreadLocalImpl::ThreadLocalImpl() : data() { }
 ThreadLocalImpl::~ThreadLocalImpl() { }
 void ThreadLocalImpl::setInstance(const void* d) { data = const_cast<void*>(d);}
 const void* ThreadLocalImpl::getInstance() { return data; }