diff options
| author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2022-07-10 09:54:30 +0200 |
|---|---|---|
| committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2022-07-10 09:54:30 +0200 |
| commit | e9ce1a588030d8d4004f5d7e443afe46245e9a92 (patch) | |
| tree | a70363c9aa204477b48fbf1b0cf9a0adf445ec2e /llvm/lib/DebugInfo/CodeView/CodeViewError.cpp | |
| parent | e6f1f062457c928c18a88c612f39d9e168f65a85 (diff) | |
Revert "ManagedStatic: remove many straightforward uses in llvm"
This reverts commit e6f1f062457c928c18a88c612f39d9e168f65a85.
Reverting due to a failure on the fuchsia-x86_64-linux buildbot.
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/CodeViewError.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/CodeView/CodeViewError.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp b/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp index 74803a3e495a..d12f6c796e50 100644 --- a/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp +++ b/llvm/lib/DebugInfo/CodeView/CodeViewError.cpp @@ -8,6 +8,7 @@ #include "llvm/DebugInfo/CodeView/CodeViewError.h" #include "llvm/Support/ErrorHandling.h" +#include "llvm/Support/ManagedStatic.h" #include <string> using namespace llvm; @@ -41,9 +42,9 @@ public: }; } // namespace +static llvm::ManagedStatic<CodeViewErrorCategory> CodeViewErrCategory; const std::error_category &llvm::codeview::CVErrorCategory() { - static CodeViewErrorCategory CodeViewErrCategory; - return CodeViewErrCategory; + return *CodeViewErrCategory; } char CodeViewError::ID; |
