From 1f917f69ff07f09b6dbb670971f57f8efe718b84 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 14 Jul 2022 20:50:02 +0200 Subject: Vendor import of llvm-project main llvmorg-15-init-16436-g18a6ab5b8d1f. --- llvm/lib/ProfileData/SampleProf.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'llvm/lib/ProfileData/SampleProf.cpp') diff --git a/llvm/lib/ProfileData/SampleProf.cpp b/llvm/lib/ProfileData/SampleProf.cpp index f794e64a13e7..b4d5550a1721 100644 --- a/llvm/lib/ProfileData/SampleProf.cpp +++ b/llvm/lib/ProfileData/SampleProf.cpp @@ -20,7 +20,6 @@ #include "llvm/Support/Compiler.h" #include "llvm/Support/Debug.h" #include "llvm/Support/ErrorHandling.h" -#include "llvm/Support/ManagedStatic.h" #include "llvm/Support/raw_ostream.h" #include #include @@ -98,10 +97,9 @@ class SampleProfErrorCategoryType : public std::error_category { } // end anonymous namespace -static ManagedStatic ErrorCategory; - const std::error_category &llvm::sampleprof_category() { - return *ErrorCategory; + static SampleProfErrorCategoryType ErrorCategory; + return ErrorCategory; } void LineLocation::print(raw_ostream &OS) const { -- cgit v1.3