[llvm-branch-commits] [llvm] 56e2df9 - Fix warning when building with GCC.

Owen Anderson via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jan 9 20:18:27 PST 2023


Author: Owen Anderson
Date: 2023-01-09T21:17:51-07:00
New Revision: 56e2df99b1afacd7002ab594948784a1c4adf1d0

URL: https://github.com/llvm/llvm-project/commit/56e2df99b1afacd7002ab594948784a1c4adf1d0
DIFF: https://github.com/llvm/llvm-project/commit/56e2df99b1afacd7002ab594948784a1c4adf1d0.diff

LOG: Fix warning when building with GCC.

Added: 
    

Modified: 
    llvm/lib/Support/CrashRecoveryContext.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp
index 9e792d1f5177..6b31a93a945f 100644
--- a/llvm/lib/Support/CrashRecoveryContext.cpp
+++ b/llvm/lib/Support/CrashRecoveryContext.cpp
@@ -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
 


        


More information about the llvm-branch-commits mailing list