diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2022-07-14 18:58:48 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2023-04-09 14:54:46 +0000 |
| commit | 7982d1ea2c5eb2ea2261fd82ebd7eebdda0e58b3 (patch) | |
| tree | ab9cca65962565747080c60135e34ba569864a69 /contrib/llvm-project/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp | |
| parent | 255d6c9fe5a7577c6caf78004034f2555bd0cba0 (diff) | |
Diffstat (limited to 'contrib/llvm-project/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp b/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp index d12f6c796e50..74803a3e495a 100644 --- a/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp +++ b/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp @@ -8,7 +8,6 @@ #include "llvm/DebugInfo/CodeView/CodeViewError.h" #include "llvm/Support/ErrorHandling.h" -#include "llvm/Support/ManagedStatic.h" #include <string> using namespace llvm; @@ -42,9 +41,9 @@ public: }; } // namespace -static llvm::ManagedStatic<CodeViewErrorCategory> CodeViewErrCategory; const std::error_category &llvm::codeview::CVErrorCategory() { - return *CodeViewErrCategory; + static CodeViewErrorCategory CodeViewErrCategory; + return CodeViewErrCategory; } char CodeViewError::ID; |
