[llvm] 9a6e84f - Revert "Fix warning when building with GCC."

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 10 06:15:42 PST 2023


Reminder to please always mention the reason for the revert/recommit
in the commit message.

On Tue, Jan 10, 2023 at 7:22 AM Owen Anderson via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
>
>
> Author: Owen Anderson
> Date: 2023-01-09T21:21:29-07:00
> New Revision: 9a6e84fd2152340d5e38f0b96568a477cbc32aec
>
> URL: https://github.com/llvm/llvm-project/commit/9a6e84fd2152340d5e38f0b96568a477cbc32aec
> DIFF: https://github.com/llvm/llvm-project/commit/9a6e84fd2152340d5e38f0b96568a477cbc32aec.diff
>
> LOG: Revert "Fix warning when building with GCC."
>
> This reverts commit 971786254cc4093eb1c56625b8da0fd3544f6512.
>
> Added:
>
>
> Modified:
>     llvm/lib/Support/CrashRecoveryContext.cpp
>
> Removed:
>
>
>
> ################################################################################
> diff  --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp
> index 6b31a93a945f..9e792d1f5177 100644
> --- a/llvm/lib/Support/CrashRecoveryContext.cpp
> +++ b/llvm/lib/Support/CrashRecoveryContext.cpp
> @@ -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
>
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list