Fix warning when building with GCC.
authorOwen Anderson <resistor@mac.com>
Tue, 10 Jan 2023 04:17:51 +0000 (21:17 -0700)
committerOwen Anderson <resistor@mac.com>
Tue, 10 Jan 2023 04:19:17 +0000 (21:19 -0700)
llvm/lib/Support/CrashRecoveryContext.cpp

index 9e792d1..6b31a93 100644 (file)
@@ -20,7 +20,7 @@ using namespace llvm;
 namespace {
 
 struct CrashRecoveryContextImpl;
-LLVM_THREAD_LOCAL static const CrashRecoveryContextImpl *CurrentContext;
+static LLVM_THREAD_LOCAL 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;
 
-LLVM_THREAD_LOCAL static const CrashRecoveryContext *IsRecoveringFromCrash;
+static LLVM_THREAD_LOCAL const CrashRecoveryContext *IsRecoveringFromCrash;
 
 } // namespace