Allow building with -Wmissing-noreturn
[folly.git] / folly / SingletonThreadLocal.h
index e073fecd2d2f303817fa82daaaec60c945bd5cc4..f3b6296cd9b6ec715409144e85d9e482c95a9944 100644 (file)
@@ -38,7 +38,6 @@ class SingletonThreadLocal {
 
   static T& get() {
 #ifdef FOLLY_TLS
-    *localPtr() = nullptr;
     if (UNLIKELY(*localPtr() == nullptr)) {
       *localPtr() = &(**SingletonT::get());
     }