diff options
Diffstat (limited to 'llvm/unittests/Support/ErrorTest.cpp')
-rw-r--r-- | llvm/unittests/Support/ErrorTest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/unittests/Support/ErrorTest.cpp b/llvm/unittests/Support/ErrorTest.cpp index 547566c..57dda99 100644 --- a/llvm/unittests/Support/ErrorTest.cpp +++ b/llvm/unittests/Support/ErrorTest.cpp @@ -12,7 +12,6 @@ #include "llvm/ADT/Twine.h" #include "llvm/Support/Errc.h" #include "llvm/Support/ErrorHandling.h" -#include "llvm/Support/ManagedStatic.h" #include "llvm/Testing/Support/Error.h" #include "gtest/gtest-spi.h" #include "gtest/gtest.h" @@ -1039,8 +1038,10 @@ public: } }; -static llvm::ManagedStatic<TestErrorCategory> TestErrCategory; -const std::error_category &TErrorCategory() { return *TestErrCategory; } +const std::error_category &TErrorCategory() { + static TestErrorCategory TestErrCategory; + return TestErrCategory; +} char TestDebugError::ID; |