Revert "Fix warning when building with GCC."
authorOwen Anderson <resistor@mac.com>
Tue, 10 Jan 2023 04:21:29 +0000 (21:21 -0700)
committerOwen Anderson <resistor@mac.com>
Tue, 10 Jan 2023 04:21:29 +0000 (21:21 -0700)
This reverts commit 971786254cc4093eb1c56625b8da0fd3544f6512.

llvm/lib/Support/CrashRecoveryContext.cpp

index 6b31a93a945f96fedecf8f2445d2b5150d545dbe..9e792d1f51777233f8b7562748a6db9473a4bc6c 100644 (file)
@@ -20,7 +20,7 @@ using namespace llvm;
 namespace {
 
 struct CrashRecoveryContextImpl;
-static LLVM_THREAD_LOCAL const CrashRecoveryContextImpl *CurrentContext;
+LLVM_THREAD_LOCAL static const CrashRecoveryContextImpl *CurrentContext;
 
 struct CrashRecoveryContextImpl {
   // When threads are disabled, this links up all active
@@ -87,7 +87,7 @@ std::mutex &getCrashRecoveryContextMutex() {
 
 static bool gCrashRecoveryEnabled = false;
 
-static LLVM_THREAD_LOCAL const CrashRecoveryContext *IsRecoveringFromCrash;
+LLVM_THREAD_LOCAL static const CrashRecoveryContext *IsRecoveringFromCrash;
 
 } // namespace