diff options
author | Owen Anderson <resistor@mac.com> | 2023-01-09 21:17:51 -0700 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2023-01-09 21:19:17 -0700 |
commit | 971786254cc4093eb1c56625b8da0fd3544f6512 (patch) | |
tree | 2030c3e8a5c6d0838d712ee8dda72a8d2dc0b5f1 | |
parent | 54d78b639b9c18b42abd4fac5c6e76105f06b3ef (diff) | |
download | llvm-971786254cc4093eb1c56625b8da0fd3544f6512.zip llvm-971786254cc4093eb1c56625b8da0fd3544f6512.tar.gz llvm-971786254cc4093eb1c56625b8da0fd3544f6512.tar.bz2 |
Fix warning when building with GCC.
-rw-r--r-- | llvm/lib/Support/CrashRecoveryContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp index 9e792d1f..6b31a93 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 |